Hi RĂ¼diger,
> Sebastian,
>
> great, that took me one step further. The custom.js starts
> with
>    qx.IS_SOURCE=false;
>    qx.VERSION="0.0";
>
>    /* ID: qx.Settings */
>    if(!window.qx){qx={};
>    }
>
> After moving the first two lines inside the !window.qx brackets
> the custom.js gets interpreted without errors.
> Can I tweak the generator.py command line to avoid the misplaced
> lines?
>
> Since custom.js works, I can now start to rework my 0.6 based code
> to adopt to the changes. Guess You will here from me soon;)
>   

This is a bug in the qooxdoo generator. We have fixed it in the current 
svn. To work around this bug you can define a runtime setting: 
"--define-runtime-setting". As an alternative apply the patch below.

Best Fabian


--- trunk/qooxdoo/frontend/framework/tool/generator.py  2007-01-31 04:29:04 UTC 
(rev 5957)
+++ trunk/qooxdoo/frontend/framework/tool/generator.py  2007-01-31 12:39:33 UTC 
(rev 5958)
@@ -996,7 +996,11 @@
 
     # Generating inline code...
     inlineCode = ""
-    inlineCode += settingsStr + sourceLineFeed
+    if settingsStr != "":
+      inlineCode += settingsStr + sourceLineFeed
+    else:
+      inlineCode += "if(!window.qx){qx={};}" + sourceLineFeed
+
     inlineCode += "qx.IS_SOURCE=true;%s" % sourceLineFeed
     inlineCode += "qx.VERSION=\"%s\";%s" % (options.version, sourceLineFeed)
     inlineCode += "".join(additionalOutput)
@@ -1046,7 +1050,11 @@
       buildLineFeed = "\n";
 
     inlineCode = ""
-    inlineCode += settingsStr + buildLineFeed
+    if settingsStr != "":
+      inlineCode += settingsStr + buildLineFeed
+    else:
+      inlineCode += "if(!window.qx){qx={};}" + buildLineFeed
+      
     inlineCode += "qx.IS_SOURCE=false;%s" % buildLineFeed
     inlineCode += "qx.VERSION=\"%s\";%s" % (options.version, buildLineFeed)
     inlineCode += "".join(additionalOutput)


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to