dabo Commit
Revision 5060
Date: 2009-02-13 19:55:16 -0800 (Fri, 13 Feb 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5060
Changed:
U trunk/ide/ClassDesigner.py
U trunk/ide/ClassDesignerCustomPropertyDialog.py
Log:
Fixed an issue where a saved custom property with None for one of its methods
would be interpreted when re-opened in the designer as a property with a method
named 'None'.
Diff:
Modified: trunk/ide/ClassDesigner.py
===================================================================
--- trunk/ide/ClassDesigner.py 2009-02-14 03:53:42 UTC (rev 5059)
+++ trunk/ide/ClassDesigner.py 2009-02-14 03:55:16 UTC (rev 5060)
@@ -2033,10 +2033,14 @@
propDict["propName"] = newPropCaption
propDict["comment"] = ""
propDict["defaultValue"] = ""
- propDict["defaultType"] = "string"
+ propDict["defaultType"] = ""
propDict["getter"] = ""
propDict["setter"] = ""
propDict["deller"] = None
+ else:
+ for mthd in ("getter", "setter", "deller"):
+ if propDict[mthd] == "None":
+ propDict[mthd] = None
dlgProp = ClassDesignerCustomPropertyDialog()
dlgProp.setData(propDict)
dlgProp.show()
Modified: trunk/ide/ClassDesignerCustomPropertyDialog.py
===================================================================
--- trunk/ide/ClassDesignerCustomPropertyDialog.py 2009-02-14 03:53:42 UTC
(rev 5059)
+++ trunk/ide/ClassDesignerCustomPropertyDialog.py 2009-02-14 03:55:16 UTC
(rev 5060)
@@ -28,7 +28,6 @@
self.ddType = dui.dDropdownList(self, Choices=["", "string",
"integer", "float", "boolean", "datetime"])
self.ddType.PositionValue = 0
- self.ddType.DynamicEnabled = self.needDefType
sz.append(lbl, halign="right")
hsz = dui.dSizer("h")
hsz.append(self.txtDefaultVal, 1)
_______________________________________________
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]