dabo Commit 4300

View: New views
1 Messages — Rating Filter:   Alert me  

dabo Commit 4300

by Ed Leafe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

dabo Commit
Revision 4300
Date: 2008-07-20 16:35:17 -0700 (Sun, 20 Jul 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4300

Changed:
U   trunk/ide/ClassDesigner.py

Log:
Broke the creation of the object and the setting of its attProperties into two steps in order to use the error handling of attProperties in propertyHelperMixin.py. This fixes issue #1160, reported by Nate Lowrie.


Diff:
Modified: trunk/ide/ClassDesigner.py
===================================================================
--- trunk/ide/ClassDesigner.py 2008-07-20 23:33:10 UTC (rev 4299)
+++ trunk/ide/ClassDesigner.py 2008-07-20 23:35:17 UTC (rev 4300)
@@ -2600,7 +2600,8 @@
 
  # Here's where the control is actually created!
  mixedClass = self.getControlClass(cls)
- obj = mixedClass(parent, properties=props, attProperties=attProperties)
+ obj = mixedClass(parent, properties=props)
+ obj.setPropertiesFromAtts(attProperties)
 
  if issubclass(cls, dui.dTreeView):
  obj.addDummyData()




_______________________________________________
Post Messages to: Dabo-dev@...
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/20080720233517.EFA1331841A@...