Changeset 4292

Show
Ignore:
Timestamp:
07/18/08 15:18:04 (1 month ago)
Author:
nate
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ide/ClassDesignerEditor.py

    r4255 r4292  
    6363        imp = self.Controller.getImportDict() 
    6464        if imp: 
    65             exec imp in self._namespaces 
     65            try: 
     66                exec imp in self._namespaces 
     67            except SyntaxError: 
     68                pass #Just let namespace import fail. 
    6669 
    6770