dabo Commit
Revision 4301
Date: 2008-07-21 08:32:55 -0700 (Mon, 21 Jul 2008)
Author: Nate
Trac: http://svn.dabodev.com/trac/dabo/changeset/4301

Changed:
U   trunk/ide/ClassDesigner.py

Log:
I was getting a traceback when I tried to add a control to the CD about 
NoneType objects having no attribute items.  This came from Ed's change in rev 
4300.  Fixed.

Diff:
Modified: trunk/ide/ClassDesigner.py
===================================================================
--- trunk/ide/ClassDesigner.py  2008-07-20 23:35:17 UTC (rev 4300)
+++ trunk/ide/ClassDesigner.py  2008-07-21 15:32:55 UTC (rev 4301)
@@ -2601,8 +2601,9 @@
                # Here's where the control is actually created!
                mixedClass = self.getControlClass(cls)
                obj = mixedClass(parent, properties=props)
-               obj.setPropertiesFromAtts(attProperties)
-
+               if attProperties is not None:
+                       obj.setPropertiesFromAtts(attProperties)
+               
                if issubclass(cls, dui.dTreeView):
                        obj.addDummyData()
 




_______________________________________________
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]

Reply via email to