daboide Commit
Revision 745
Date: 2007-01-09 11:49:47 -0800 (Tue, 09 Jan 2007)
Author: Paul

Changed:
U   trunk/wizards/AppWizard/AppWizard.py
U   trunk/wizards/AppWizard/spec-Biz.py.txt

Log:
This at least gets the selection working for tables with spaces. However,
there are still issues with dCursorMixin's creating the insert and update
statements.


Diff:
Modified: trunk/wizards/AppWizard/AppWizard.py
===================================================================
--- trunk/wizards/AppWizard/AppWizard.py        2007-01-09 19:40:08 UTC (rev 
744)
+++ trunk/wizards/AppWizard/AppWizard.py        2007-01-09 19:49:47 UTC (rev 
745)
@@ -1343,8 +1343,12 @@
                
                fields = ""
 
+               tableNameQt = table
+               if " " in tableNameQt:
+                       tableNameQt = "'%s'" % tableNameQt
+
                for field in sortedFieldNames:
-                       fields += """self.addField("%s.%s as %s")\n\t\t""" % 
(table, field[1], field[1])
+                       fields += """self.addField("%s.%s as %s")\n\t\t""" % 
(tableNameQt, field[1], field[1])
                                                
                return open(os.path.join(self.wizDir, 
                                "spec-Biz.py.txt")).read() % locals()

Modified: trunk/wizards/AppWizard/spec-Biz.py.txt
===================================================================
--- trunk/wizards/AppWizard/spec-Biz.py.txt     2007-01-09 19:40:08 UTC (rev 
744)
+++ trunk/wizards/AppWizard/spec-Biz.py.txt     2007-01-09 19:49:47 UTC (rev 
745)
@@ -33,6 +33,6 @@
                # UI refresh() will probably modify the where clause and maybe 
the
                # limit clause, depending on what the runtime user chooses in 
the
                # select page.
-               self.addFrom("%(table)s")
+               self.addFrom("%(tableNameQt)s")
                self.setLimitClause("500")
                %(fields)s              




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to