daboide Commit
Revision 841
Date: 2007-04-26 04:07:50 -0700 (Thu, 26 Apr 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/daboide/changeset/841

Changed:
U   trunk/ClassDesignerEditor.py

Log:
Added some defensive code to eliminate an incorrect error message as the 
Designer is quitting.


Diff:
Modified: trunk/ClassDesignerEditor.py
===================================================================
--- trunk/ClassDesignerEditor.py        2007-04-25 11:37:43 UTC (rev 840)
+++ trunk/ClassDesignerEditor.py        2007-04-26 11:07:50 UTC (rev 841)
@@ -319,8 +319,12 @@
        def populateMethodList(self):
                # Refresh the method list
                obj = self.ddObject.KeyValue
-               mthds = self.Controller.getClassMethods(obj._baseClass)
-               code = self.Controller.getCodeForObject(obj)
+               if not obj:
+                       mthds = []
+                       code = {}
+               else:
+                       mthds = self.Controller.getClassMethods(obj._baseClass)
+                       code = self.Controller.getCodeForObject(obj)
                chc = []
                if code is None:
                        codeKeys = []





_______________________________________________
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/dabo-dev/[EMAIL PROTECTED]

Reply via email to