dabo Commit
Revision 4292
Date: 2008-07-18 15:18:04 -0700 (Fri, 18 Jul 2008)
Author: Nate
Trac: http://svn.dabodev.com/trac/dabo/changeset/4292
Changed:
U trunk/ide/ClassDesignerEditor.py
Log:
I had problems importing namespaces for introspection in the CD. The imports
were right but it wasn't liking the line ending for some reason and throwing a
SantaxError. So, I catch the SyntaxError. If the error is thrown the editor
won't let you enter any more characters and any syntax error should be thrown
when you run the program, not in the design.
Diff:
Modified: trunk/ide/ClassDesignerEditor.py
===================================================================
--- trunk/ide/ClassDesignerEditor.py 2008-07-18 00:03:11 UTC (rev 4291)
+++ trunk/ide/ClassDesignerEditor.py 2008-07-18 22:18:04 UTC (rev 4292)
@@ -62,7 +62,10 @@
exec "import dabo\ndui = dabo.ui" in self._namespaces
imp = self.Controller.getImportDict()
if imp:
- exec imp in self._namespaces
+ try:
+ exec imp in self._namespaces
+ except SyntaxError:
+ pass #Just let namespace import fail.
def _getController(self):
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]