[Laszlo-checkins] r12364 - in openlaszlo/trunk: WEB-INF/lps/lfc/compiler WEB-INF/lps/lfc/data WEB-INF/lps/lfc/helpers WEB-INF/lps/lfc/services docs/src/reference lps/components/base lps/components/lz lps/components/rpc

lou@openlaszlo.org lou at openlaszlo.org
Thu Jan 8 10:42:16 PST 2009


Author: lou
Date: 2009-01-08 10:40:01 -0800 (Thu, 08 Jan 2009)
New Revision: 12364

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzFormatter.lzs
   openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataset.lzs
   openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzCommand.lzs
   openlaszlo/trunk/WEB-INF/lps/lfc/services/LzBrowser.lzs
   openlaszlo/trunk/WEB-INF/lps/lfc/services/LzKeys.lzs
   openlaszlo/trunk/WEB-INF/lps/lfc/services/LzURL.lzs
   openlaszlo/trunk/docs/src/reference/langref.xml
   openlaszlo/trunk/lps/components/base/basetabs.lzx
   openlaszlo/trunk/lps/components/lz/checkbox.lzx
   openlaszlo/trunk/lps/components/lz/menu.lzx
   openlaszlo/trunk/lps/components/rpc/ajax.lzx
   openlaszlo/trunk/lps/components/rpc/javarpc.lzx
   openlaszlo/trunk/lps/components/rpc/rpc.lzx
   openlaszlo/trunk/lps/components/rpc/sessionrpc.lzx
   openlaszlo/trunk/lps/components/rpc/soap.lzx
   openlaszlo/trunk/lps/components/rpc/webapprpc.lzx
   openlaszlo/trunk/lps/components/rpc/xmlrpc.lzx
Log:
Change 20090108-lou-N by lou at loumac.local on 2009-01-08 14:24:41 AST
    in /Users/lou/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: reference: mphasize Debug.debug over Debug.write in live examples

Bugs Fixed: LPP-7437

Technical Reviewer: tucker
QA Reviewer: (pending)
Doc Reviewer: (pending)

Details: change most examples that used Debug.write() to use Debug.debug().
There are still examples that use Debug.write(), for example on the Debug,
page, to contrast the use of Debug.write() verses the other methods.

Some live examples on the RPC pages could not be tested because of open
JIRAs that prevent the examples from working.
    
Tests: visual verify; test live examples



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzFormatter.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzFormatter.lzs	2009-01-08 18:31:28 UTC (rev 12363)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzFormatter.lzs	2009-01-08 18:40:01 UTC (rev 12364)
@@ -3,7 +3,7 @@
 /**
  * Formatted output
  *
- * @copyright Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.
+ * @copyright Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.
  *            Use is subject to license terms.
  */
 
@@ -40,7 +40,7 @@
 <debug y="5%" height="90%" />
   <script>
     var myObj = {one: 1, too: 2, 3: 'threeee', 42: "The answer", 'a very long tag name': "With a very long value to boot"};
-    Debug.write("My object using Debug.write:", myObj);
+    Debug.debug("My object using %%w: %w", myObj);
     Debug.debug("My object using %%o.32w: %0.32w", myObj);
   </script>
 </canvas>

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataset.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataset.lzs	2009-01-08 18:31:28 UTC (rev 12363)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataset.lzs	2009-01-08 18:40:01 UTC (rev 12364)
@@ -1,6 +1,6 @@
 /**
   *
-  * @copyright Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.
+  * @copyright Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.
   *            Use is subject to license terms.
   *
   * @topic LFC
@@ -60,7 +60,7 @@
   *     &lt;inputtext width="90" name="t"&gt;zip&lt;/inputtext&gt;
   *     &lt;button&gt;  submit
   *       &lt;handler name="onclick"&gt; var d = canvas.datasets.weatherdata;
-  *         Debug.write("sending request for weather data.");
+  *         Debug.debug("sending request for weather data.");
   *         d.setQueryString({zip : parent.t.getText()});
   *         d.doRequest(); 
   *       &lt;/handler&gt;
@@ -70,7 +70,7 @@
   *         var duplicate_pointer = this.dupePointer();
   *         duplicate_pointer.selectChild();
   *         while (duplicate_pointer.selectNext()){
-  *           Debug.write(duplicate_pointer.serialize());
+  *           Debug.debug("%w", duplicate_pointer.serialize());
   *         }
   *       &lt;/handler&gt;
   *     &lt;/datapointer&gt;

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzCommand.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzCommand.lzs	2009-01-08 18:31:28 UTC (rev 12363)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzCommand.lzs	2009-01-08 18:40:01 UTC (rev 12364)
@@ -1,6 +1,6 @@
 /**
   *
-  * @copyright Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.
+  * @copyright Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.
   *            Use is subject to license terms.
   *
   * @affects lzcommand
@@ -12,7 +12,7 @@
 /**
   * <example class="program" id="command-1">
   * &lt;canvas height="130" debug="true"&gt;
-  *   &lt;command onselect="Debug.write('the enter key was pressed');" 
+  *   &lt;command onselect="Debug.debug('the enter key was pressed');" 
   *             key="['Enter']" /&gt;
   * 
   * &lt;/canvas&gt;

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/LzBrowser.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzBrowser.lzs	2009-01-08 18:31:28 UTC (rev 12363)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzBrowser.lzs	2009-01-08 18:40:01 UTC (rev 12364)
@@ -23,7 +23,7 @@
  *   </button>
  *   <script>
  *     // List the player version
- *     Debug.write('Player version: ' + lz.Browser.getVersion());
+ *     Debug.debug('Player version: %w', lz.Browser.getVersion());
  *   </script>
  * </canvas>]]>
  * </example>

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/LzKeys.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzKeys.lzs	2009-01-08 18:31:28 UTC (rev 12363)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzKeys.lzs	2009-01-08 18:40:01 UTC (rev 12364)
@@ -1,6 +1,6 @@
 /**
   *
-  * @copyright Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.
+  * @copyright Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.
   *            Use is subject to license terms.
   *
   * @affects lzbrowser
@@ -21,13 +21,13 @@
   * <example title="lz.Keys">
   * <programlisting>&lt;canvas height="140" debug="true"&gt;
   *   &lt;handler name="onkeydown" reference="lz.Keys" args="k"&gt;
-  *     Debug.write("key " + k + " down");
+  *     Debug.debug("key %w %s", k, "down");
   *   &lt;/handler&gt;
   *   &lt;handler name="onkeyup" reference="lz.Keys" args="k"&gt;
-  *     Debug.write("key " + k + " up");
+  *     Debug.debug("key %w %s", k, "up");
   *   &lt;/handler&gt;
   *   &lt;method name="pressA"&gt;
-  *     Debug.write("A pressed");
+  *     Debug.debug("A pressed");
   *   &lt;/method&gt;
   *   &lt;handler name="oninit"&gt;
   *     del = new LzDelegate(this, "pressA");

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/LzURL.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzURL.lzs	2009-01-08 18:31:28 UTC (rev 12363)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzURL.lzs	2009-01-08 18:40:01 UTC (rev 12364)
@@ -1,6 +1,6 @@
 /**
   *
-  * @copyright Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.
+  * @copyright Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.
   *            Use is subject to license terms.
   *
   * @affects lzurl
@@ -20,24 +20,24 @@
   *         var url:LzURL = new LzURL(urlstring);
   *
   *         // list each part of this url
-  *         Debug.write("protocol: " + url.protocol);
-  *         Debug.write("host: " + url.host);
-  *         Debug.write("port: " + url.port);
-  *         Debug.write("path: " + url.path);
-  *         Debug.write("file: " + url.file);
-  *         Debug.write("query: " + url.query);
+  *         Debug.debug("protocol: %w", url.protocol);
+  *         Debug.debug("host: %w", url.host);
+  *         Debug.debug("port: %w", url.port);
+  *         Debug.debug("path: %w", url.path);
+  *         Debug.debug("file: %w", url.file);
+  *         Debug.debug("query: %w", url.query);
   *         
   *         // list the url
-  *         Debug.write("Complete URL: " + url);
+  *         Debug.debug("Complete URL: %w", url);
   *        
   *         // Make it secure
   *         url.protocol = 'https';
   *         url.port = 8443;
-  *         Debug.write("Secure URL: " + url);
+  *         Debug.debug("Secure URL: %w", url);
   *         
   *         // Change the query string
   *         url.query = 'lzt=source';
-  *         Debug.write("New path: " + url);
+  *         Debug.debug("New path: %w", url);
   *     </script>
   * </canvas>
   * ]]></example>

Modified: openlaszlo/trunk/docs/src/reference/langref.xml
===================================================================
--- openlaszlo/trunk/docs/src/reference/langref.xml	2009-01-08 18:31:28 UTC (rev 12363)
+++ openlaszlo/trunk/docs/src/reference/langref.xml	2009-01-08 18:40:01 UTC (rev 12364)
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006-2008 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2006-2009 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <js2doc>
@@ -540,7 +540,7 @@
 <view id="obj">
   <handler name="onmyevent" args="a">
     this.setBGColor(0xff0000);
-    Debug.write(this,'got onblah event, arg is',a);
+    Debug.debug('%w got onblah event, arg is %w', this, a);
   </handler>
 </view>]]></programlisting>
               then script code <literal>obj.onmyevent.sendEvent(259)</literal> will invoke this handler method.</para>
@@ -655,10 +655,10 @@
     <javarpc name="ce" scope="session" remoteclassname="examples.ConstructExample"
              createargs="[1]" autoload="false">
         <handler name="onerror" args="err">
-            Debug.write("onerror:", err)
+            Debug.debug("onerror: %w", err)
         </handler>
         <handler name="onload">
-            Debug.write("proxy loaded:", this.proxy);
+            Debug.debug("proxy loaded: %w", this.proxy);
         </handler>
     </javarpc>
 
@@ -668,10 +668,10 @@
     <javarpc name="te" scope="session" remoteclassname="examples.TypesExample"
              autoload="false">
         <handler name="onerror" args="err">
-            Debug.write("onerror:", err)
+            Debug.debug("onerror: %w", err)
         </handler>
         <handler name="onload">
-            Debug.write("proxy loaded:", this.proxy);
+            Debug.debug("proxy loaded: %w", this.proxy);
         </handler>
     </javarpc>
 

Modified: openlaszlo/trunk/lps/components/base/basetabs.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basetabs.lzx	2009-01-08 18:31:28 UTC (rev 12363)
+++ openlaszlo/trunk/lps/components/base/basetabs.lzx	2009-01-08 18:40:01 UTC (rev 12364)
@@ -467,8 +467,8 @@
                 &lt;basetabpane name="one"&gt;
                   &lt;handler name="onvisible" args="isvisible"&gt;
                     if (isvisible) {
-                      Debug.write("parent: " + parent);
-                      Debug.write("immediate parent: " + immediateparent);
+                      Debug.debug("parent: %w", parent);
+                      Debug.debug("immediate parent: %w", immediateparent);
                     }
                   &lt;/handler&gt;
                   &lt;text&gt;one&lt;/text&gt;
@@ -879,7 +879,7 @@
 
 </library>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <!-- @LZX_VERSION@                                                         -->

Modified: openlaszlo/trunk/lps/components/lz/checkbox.lzx
===================================================================
--- openlaszlo/trunk/lps/components/lz/checkbox.lzx	2009-01-08 18:31:28 UTC (rev 12363)
+++ openlaszlo/trunk/lps/components/lz/checkbox.lzx	2009-01-08 18:40:01 UTC (rev 12364)
@@ -97,7 +97,7 @@
               &lt;button text="Toggle" onclick="checkMe.setAttribute('value', !checkMe.value)"/&gt;
               &lt;button text="Disable" onclick="checkMe.setAttribute('enabled', false)"/&gt;
               &lt;button text="Enable" onclick="checkMe.setAttribute('enabled', true)"/&gt;
-              &lt;button text="status" onclick="Debug.write('value: '+checkMe.value)"/&gt;
+              &lt;button text="status" onclick="Debug.debug('value: %w', checkMe.value)"/&gt;
               &lt;simplelayout axis="y" spacing="4"/&gt;
               &lt;/canvas&gt;
             </example>
@@ -118,7 +118,7 @@
     </class>
 </library>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <!-- @LZX_VERSION@                                                         -->

Modified: openlaszlo/trunk/lps/components/lz/menu.lzx
===================================================================
--- openlaszlo/trunk/lps/components/lz/menu.lzx	2009-01-08 18:31:28 UTC (rev 12363)
+++ openlaszlo/trunk/lps/components/lz/menu.lzx	2009-01-08 18:40:01 UTC (rev 12364)
@@ -135,7 +135,7 @@
   </menubar>
   
   <method name="whichOne" args="vThis">
-    Debug.write(vThis.parent.owner.text + " - "+ vThis.text);
+    Debug.debug("%w - %w", vThis.parent.owner.text, vThis.text);
   </method>
 </canvas>
                     ]]>
@@ -824,7 +824,7 @@
                &lt;/menubar&gt;
 
                &lt;method name="whichOne" args="vThis"&gt;
-               Debug.write(vThis.parent.owner.text + " - "+ vThis.text);
+               Debug.debug("%w - %w", vThis.parent.owner.text, vThis.text);
                &lt;/method&gt;
                &lt;/canvas&gt;
              </example>
@@ -861,7 +861,7 @@
 
 </library>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <!-- @LZX_VERSION@                                                         -->

Modified: openlaszlo/trunk/lps/components/rpc/ajax.lzx
===================================================================
--- openlaszlo/trunk/lps/components/rpc/ajax.lzx	2009-01-08 18:31:28 UTC (rev 12363)
+++ openlaszlo/trunk/lps/components/rpc/ajax.lzx	2009-01-08 18:40:01 UTC (rev 12364)
@@ -277,19 +277,19 @@
         }
         
         function processReqChange(request) {
-            Debug.write("processReqChange: req.readyState", request.readyState);
+            Debug.debug("processReqChange: req.readyState %w", request.readyState);
             // only if request shows "loaded"
             if (request.readyState == 4) {
             // only if "OK"
         if (request.status == 200) {
-            Debug.write("arg =", request);
-            Debug.write("request.status", request.status);
-            Debug.write("request.responseText:", request.responseText);
-            Debug.write("request.responseXML:", request.responseXML);
-            Debug.write("request.getAllResponseaders:",
+            Debug.debug("arg = %w", request);
+            Debug.debug("request.status: %w", request.status);
+            Debug.debug("request.responseText: %w", request.responseText);
+            Debug.debug("request.responseXML %w:", request.responseXML);
+            Debug.debug("request.getAllResponseaders:",
             request.getAllResponseHeaders());
         } else {
-            Debug.write("There was a problem retrieving the XML data:\n" +
+            Debug.debug("There was a problem retrieving the XML data: %w\n",
             request.statusText);
                }
            }
@@ -303,7 +303,7 @@
 
 </library>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006, 2008 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2009, 2008 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <!-- @LZX_VERSION@                                                         -->

Modified: openlaszlo/trunk/lps/components/rpc/javarpc.lzx
===================================================================
--- openlaszlo/trunk/lps/components/rpc/javarpc.lzx	2009-01-08 18:31:28 UTC (rev 12363)
+++ openlaszlo/trunk/lps/components/rpc/javarpc.lzx	2009-01-08 18:40:01 UTC (rev 12364)
@@ -267,11 +267,11 @@
         &lt;/handler&gt;
         
         &lt;handler name="ondata" args="res"&gt;
-            Debug.write('(types ondata) response is:', res);
+            Debug.debug('(types ondata) response is: %w', res);
         &lt;/handler&gt;
         
         &lt;handler name="onerror" args="errmsg"&gt;
-            Debug.write('(types onerror) error:', errmsg);
+            Debug.debug('(types onerror) error: %w', errmsg);
         &lt;/handler&gt;
         
         &lt;!-- Declaratively pass an integer. --&gt;
@@ -442,7 +442,7 @@
 
 </library>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <!-- @LZX_VERSION@                                                         -->

Modified: openlaszlo/trunk/lps/components/rpc/rpc.lzx
===================================================================
--- openlaszlo/trunk/lps/components/rpc/rpc.lzx	2009-01-08 18:31:28 UTC (rev 12363)
+++ openlaszlo/trunk/lps/components/rpc/rpc.lzx	2009-01-08 18:40:01 UTC (rev 12364)
@@ -222,12 +222,12 @@
             wsdl="http://developerdays.com/cgi-bin/tempconverter.exe/wsdl/ITempConverter"&gt;
             &lt;method name="init"&gt;
                 super.init();
-                Debug.write('soap service loading...');
+                Debug.debug('soap service loading...');
                 this.load();
             &lt;/method&gt;
         &lt;handler name="onload"&gt;
-            Debug.write('temperature service loaded!');
-            Debug.write('---');
+            Debug.debug('temperature service loaded!');
+            Debug.debug('---');
     
             // don't allow others to call RPC object until proxy is loaded.
             canvas.convert.setAttribute('visible', true);
@@ -238,10 +238,10 @@
             &lt;handler name="onclick"&gt;
             var f = 100;
             canvas.temperature.proxy.FtoC([ f ], this.myDel)
-            Debug.write('Invoking FtoC...');
+            Debug.debug('Invoking FtoC...');
         &lt;/handler&gt;
         &lt;method name="myhandler" args="data"&gt;
-            Debug.write('got data:', data);
+            Debug.debug('got data: %w', data);
         &lt;/method&gt;
     
         &lt;/button&gt;
@@ -260,13 +260,13 @@
     
         &lt;method name="init"&gt;
             super.init();
-            Debug.write('soap service loading...');
+            Debug.debug('soap service loading...');
             this.load();
         &lt;/method&gt;
     
         &lt;handler name="onload"&gt;
-            Debug.write('temperature service loaded!');
-            Debug.write('---');
+            Debug.debug('temperature service loaded!');
+            Debug.debug('---');
     
             // don't allow others to call RPC object until proxy is loaded.
             canvas.convert.setAttribute('visible', true);
@@ -276,10 +276,10 @@
         &lt;param value="100" /&gt;
     
             &lt;handler name="ondata" args="value"&gt;
-                Debug.write('got data:', value);
+                Debug.debug('got data: %w', value);
                 &lt;/handler&gt;
                 &lt;handler name="onerror" args="errmsg"&gt;
-                Debug.write('error:', errmsg);
+                Debug.debug('error: %w', errmsg);
             &lt;/handler&gt;
     
         &lt;/remotecall&gt;
@@ -289,7 +289,7 @@
     &lt;button name="convert" text="convert" x="10" y="10" visible="false"&gt;
         &lt;handler name="onclick"&gt;
             canvas.temperature.FtoC.invoke();
-        Debug.write('Invoking FtoC...');
+        Debug.debug('Invoking FtoC...');
         &lt;/handler&gt;
     &lt;/button&gt;
     
@@ -498,20 +498,20 @@
         
             &lt;method name="init"&gt;
                 super.init();
-                Debug.write('soap service loading...');
+                Debug.debug('soap service loading...');
                 this.load();
             &lt;/method&gt;
             
             &lt;handler name="onload"&gt;
-            Debug.write('temperature service loaded!');
-            Debug.write('---');
+            Debug.debug('temperature service loaded!');
+            Debug.debug('---');
             
             // don't allow others to call RPC object until proxy is loaded.
             canvas.convert.setAttribute('visible', true);
             &lt;/handler&gt;
             
             &lt;handler name="ondata" args="value"&gt;
-                Debug.write('soap object parent ondata:', value);
+                Debug.debug('soap object parent ondata: %w', value);
             &lt;/handler&gt;
             
             &lt;remotecall <em>name="ftoc1" funcname="FtoC"</em>&gt;
@@ -521,7 +521,7 @@
             &lt;remotecall <em>name="ftoc2" funcname="FtoC"</em>&gt;
                 &lt;param value="200" /&gt;
                 &lt;handler name="ondata" args="value"&gt;
-                    Debug.write('ftoc ondata:', value);
+                    Debug.debug('ftoc ondata: %w', value);
                 &lt;/handler&gt;
             &lt;/remotecall&gt;
         
@@ -532,13 +532,13 @@
             &lt;button text="convert 100F to C"&gt;
                 &lt;handler name="onclick"&gt;
                 canvas.temperature.ftoc1.invoke()
-                Debug.write('Invoking FtoC 1...');
+                Debug.debug('Invoking FtoC 1...');
                 &lt;/handler&gt;
             &lt;/button&gt;
                 &lt;button text="convert 200F to C"&gt;
                 &lt;handler name="onclick"&gt;
                     canvas.temperature.ftoc2.invoke()
-                    Debug.write('Invoking FtoC 2...');
+                    Debug.debug('Invoking FtoC 2...');
                 &lt;/handler&gt;
             &lt;/button&gt;
         &lt;/view&gt;
@@ -560,24 +560,24 @@
         
             &lt;method name="init"&gt;
                 super.init();
-                Debug.write('soap service loading...');
+                Debug.debug('soap service loading...');
                 this.load();
             &lt;/method&gt;
             
             &lt;handler name="onload"&gt;
-                Debug.write('temperature service loaded!');
-                Debug.write('---');
+                Debug.debug('temperature service loaded!');
+                Debug.debug('---');
                 
                 // don't allow others to call RPC object until proxy is loaded.
                 canvas.convert.setAttribute('visible', true);
             &lt;/handler&gt;
             
             &lt;handler name="ondata" args="value"&gt;
-                Debug.write('soap object ondata:', value);
+                Debug.debug('soap object ondata: %w', value);
                 &lt;/handler&gt;
                 
                 &lt;handler name="onerror" args="errmsg"&gt;
-                Debug.write('error:', errmsg);
+                Debug.debug('error: %w', errmsg);
             &lt;/handler&gt;
         
         &lt;/soap&gt;
@@ -589,7 +589,7 @@
             
                 &lt;handler name="onclick"&gt;
                     this.FtoC.invoke()
-                    Debug.write('Converting 100F to Celsius...');
+                    Debug.debug('Converting 100F to Celsius...');
                 &lt;/handler&gt;
                 
                 &lt;remotecall funcname="FtoC" 
@@ -603,14 +603,14 @@
             
                 &lt;handler name="onclick"&gt;
                 this.FtoC.invoke()
-                    Debug.write('Converting 200F to Celsius...');
+                    Debug.debug('Converting 200F to Celsius...');
                 &lt;/handler&gt;
                 
                 &lt;remotecall funcname="FtoC"
                     remotecontext="$once{canvas.temperature}"&gt;
                     &lt;param value="200" /&gt;
                     &lt;handler name="ondata" args="value"&gt;
-                        Debug.write('200F in Celsius is', value);
+                        Debug.debug('200F in Celsius is %w', value);
                     &lt;/handler&gt;
                 &lt;/remotecall&gt;
             &lt;/button&gt;
@@ -644,11 +644,11 @@
         
         &lt;soap name="google" wsdl="http://api.google.com/GoogleSearch.wsdl"&gt;
             &lt;handler name="onload"&gt;
-                Debug.write('google soap service stub loaded');
+                Debug.debug('google soap service stub loaded');
             &lt;/handler&gt;
             
             &lt;handler name="onerror" args="error"&gt;
-                Debug.write('error:', error);
+                Debug.debug('error: %w', error);
             &lt;/handler&gt;
             
             &lt;remotecall name="search" funcname="doGoogleSearch" 
@@ -666,7 +666,7 @@
                 &lt;param value="''" /&gt;
                 
                 &lt;handler name="ondata" args="value"&gt;
-                    Debug.write('got result');
+                    Debug.debug('got result');
                     Debug.inspect(value);
                 &lt;/handler&gt;
             
@@ -768,7 +768,7 @@
 
 </library>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <!-- @LZX_VERSION@                                                         -->

Modified: openlaszlo/trunk/lps/components/rpc/sessionrpc.lzx
===================================================================
--- openlaszlo/trunk/lps/components/rpc/sessionrpc.lzx	2009-01-08 18:31:28 UTC (rev 12363)
+++ openlaszlo/trunk/lps/components/rpc/sessionrpc.lzx	2009-01-08 18:40:01 UTC (rev 12364)
@@ -113,21 +113,21 @@
         &lt;sessionrpc id="session" autoload="false"&gt;
         
             &lt;handler name="oninit"&gt;
-                Debug.write('loading session object...')
+                Debug.debug('loading session object...')
                 this.load();
             &lt;/handler&gt;
             
             &lt;handler name="onload"&gt;
-                Debug.write('session object loaded');
+                Debug.debug('session object loaded');
                 canvas.buttons.setAttribute('visible', true);
             &lt;/handler&gt;        
             
             &lt;handler name="ondata" args="data"&gt;
-                Debug.write("default ondata:", data);
+                Debug.debug("default ondata: %w", data);
             &lt;/handler&gt;
             
             &lt;handler name="onerror" args="error"&gt;
-                Debug.write("default onerror:", error);
+                Debug.debug("default onerror: %w", error);
             &lt;/handler&gt;
             
             &lt;remotecall funcname="getId" /&gt;
@@ -192,7 +192,7 @@
                 &lt;/handler&gt;
                 
                 &lt;method name="myhandler" args="data"&gt;
-                    Debug.write('myhandler:', data);
+                    Debug.debug('myhandler: %w', data);
                 &lt;/method&gt;
                 
                 &lt;button text="setmyattr" onclick="session.setmyattr.invoke()" /&gt;
@@ -250,7 +250,7 @@
 
 </library>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <!-- @LZX_VERSION@                                                         -->

Modified: openlaszlo/trunk/lps/components/rpc/soap.lzx
===================================================================
--- openlaszlo/trunk/lps/components/rpc/soap.lzx	2009-01-08 18:31:28 UTC (rev 12363)
+++ openlaszlo/trunk/lps/components/rpc/soap.lzx	2009-01-08 18:40:01 UTC (rev 12364)
@@ -138,15 +138,15 @@
             wsdl="http://soap.amazon.com/schemas3/AmazonWebServices.wsdl"&gt;
         
             &lt;handler name="onload"&gt;
-                Debug.write('Amazon soap service loaded');
-                Debug.write('Compare proxy stubs with WSDL SOAP operations.');
-                Debug.write('Amazon WSDL at ' + this.wsdl);            
-                Debug.write('proxy:');
+                Debug.debug('Amazon soap service loaded');
+                Debug.debug('Compare proxy stubs with WSDL SOAP operations.');
+                Debug.debug('Amazon WSDL at %w', this.wsdl);            
+                Debug.debug('proxy:');
                 Debug.inspect(this.proxy);
             &lt;/handler&gt;
             
             &lt;handler name="onerror" args="error"&gt;
-                Debug.write('error:', error);
+                Debug.debug('error: %w', error);
             &lt;/handler&gt;
         
         &lt;/soap&gt;
@@ -176,7 +176,7 @@
                     '&lt;A&gt;' + av + '&lt;/A&gt;' + 
                     '&lt;B&gt;' + bv + '&lt;/B&gt;' + 
                 '&lt;/' + func + '&gt;';
-                Debug.write(s);
+                Debug.debug("%w", s);
                 return s;
                 ]]&gt;
             &lt;/method&gt;
@@ -187,15 +187,15 @@
             &lt;/handler&gt;
             
             &lt;handler name="onerror" args="error"&gt;
-                Debug.write('error:', error);
+                Debug.debug('error: %w', error);
             &lt;/handler&gt;
             
             &lt;handler name="ontimeout" args="error"&gt;
-                Debug.write('timeout:', error);
+                Debug.debug('timeout: %w', error);
             &lt;/handler&gt;
             
             &lt;handler name="ondata" args="value"&gt;
-                Debug.write(value);
+            Debug.debug("%w", value);
                 result.setAttribute('text', value);
             &lt;/handler&gt;
             
@@ -319,11 +319,11 @@
           
           &lt;soap name="google" wsdl="http://api.google.com/GoogleSearch.wsdl"&gt;
               &lt;handler name="onload"&gt;
-                  Debug.write('google soap service loaded');
+                  Debug.debug('google soap service loaded');
               &lt;/handler&gt;
               
               &lt;handler name="onerror" args="error"&gt;
-                  Debug.write('error:', error);
+                  Debug.debug('error: %w', error);
               &lt;/handler&gt;
               
               &lt;!-- See RPC chapter for details on remotecall and how dataobject is
@@ -343,7 +343,7 @@
                   &lt;param value="''" /&gt;
                   
                   &lt;handler name="ondata" args="value"&gt;
-                      Debug.write('search result:\n', value);
+                      Debug.debug('search result: %w\n', value);
                   &lt;/handler&gt;
               
               &lt;/remotecall&gt;
@@ -353,7 +353,7 @@
               &lt;view layout="axis: x; spacing: 5"&gt;
                   &lt;edittext id="s" text="SOAP" /&gt;
                   &lt;button text="search" 
-                  onclick="Debug.write('Invoking search...'); google.search.invoke()" /&gt;
+                  onclick="Debug.debug('Invoking search...'); google.search.invoke()" /&gt;
               &lt;/view&gt;
                   
               &lt;view width="505" height="140" bgcolor="silver" layout="axis: y" &gt;
@@ -403,7 +403,7 @@
 
 </library>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <!-- @LZX_VERSION@                                                         -->

Modified: openlaszlo/trunk/lps/components/rpc/webapprpc.lzx
===================================================================
--- openlaszlo/trunk/lps/components/rpc/webapprpc.lzx	2009-01-08 18:31:28 UTC (rev 12363)
+++ openlaszlo/trunk/lps/components/rpc/webapprpc.lzx	2009-01-08 18:40:01 UTC (rev 12364)
@@ -116,25 +116,25 @@
         <webapprpc id="webapp" autoload="false">
             
             <handler name="oninit">
-                Debug.write('loading webapp object...');
+                Debug.debug('loading webapp object...');
                 this.load();
             </handler>        
             
             <handler name="onload">
-                Debug.write('webapp object loaded');
+                Debug.debug('webapp object loaded');
                 canvas.buttons.setAttribute('visible', true);
             </handler>        
             
             <handler name="ondata" args="data">
                 if (data == LzRPC.t_void) {
-                Debug.write("default ondata: void");
+                Debug.debug("default ondata: void");
                 } else {
-                Debug.write("default ondata:", data);
+                Debug.debug("default ondata: %w", data);
                 }
             </handler>
             
             <handler name="onerror" args="error">
-                Debug.write("default onerror:", error);
+                Debug.debug("default onerror: %w", error);
             </handler>
             
             <remotecall funcname="getMajorVersion" />
@@ -211,7 +211,7 @@
                 </handler>
                 
                 <method name="myhandler" args="data">
-                    Debug.write('myhandler:', data);
+                    Debug.debug('myhandler: %w', data);
                 </method>
                 
                 <button text="setmyattr" onclick="webapp.setmyattr.invoke()" />
@@ -268,7 +268,7 @@
 
 </library>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <!-- @LZX_VERSION@                                                         -->

Modified: openlaszlo/trunk/lps/components/rpc/xmlrpc.lzx
===================================================================
--- openlaszlo/trunk/lps/components/rpc/xmlrpc.lzx	2009-01-08 18:31:28 UTC (rev 12363)
+++ openlaszlo/trunk/lps/components/rpc/xmlrpc.lzx	2009-01-08 18:40:01 UTC (rev 12364)
@@ -89,17 +89,17 @@
         &lt;xmlrpc name="math" service="http://www.cookcomputing.com/xmlrpcsamples/math.rem"&gt;
             
             &lt;handler name="onload"&gt;
-                Debug.write('math XML-RPC service loaded');
-                Debug.write('proxy:');
+                Debug.debug('math XML-RPC service loaded');
+                Debug.debug('proxy:');
                 Debug.inspect(this.proxy);
             &lt;/handler&gt;
             
             &lt;handler name="ondata" args="data"&gt;
-                Debug.write('got data:', data);
+                Debug.debug('got data: %w', data);
             &lt;/handler&gt;
             
             &lt;handler name="onerror" args="error"&gt;
-                Debug.write('onerror:', error);
+                Debug.debug('onerror: %w', error);
             &lt;/handler&gt;
             
             &lt;remotecall name="add" funcname="math.Add"/&gt;
@@ -111,7 +111,7 @@
         
         &lt;button text="100+200" x="10" y="10"&gt;
             &lt;handler name="onclick"&gt;
-                Debug.write('100+200');
+                Debug.debug('100+200');
                 math.add.invoke([100,200]);
             &lt;/handler&gt;
         &lt;/button&gt;
@@ -145,7 +145,7 @@
 
 </library>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <!-- @LZX_VERSION@                                                         -->



More information about the Laszlo-checkins mailing list