dabo Commit Revision 601 Date: 2004-11-30 16:08:58 -0800 (Tue, 30 Nov 2004) Author: paul
Log: Fixed a subtle problem when trying to get the Form property.
Got rid of an extraneous eval() in getPropertyInfo().
Changed: U trunk/common/propertyHelperMixin.py U trunk/ui/dPemMixinBase.py
Diff: Modified: trunk/common/propertyHelperMixin.py =================================================================== --- trunk/common/propertyHelperMixin.py 2004-11-30 21:29:53 UTC (rev 600) +++ trunk/common/propertyHelperMixin.py 2004-12-01 00:08:58 UTC (rev 601) @@ -124,7 +124,7 @@ """ Returns a dictionary of information about the passed property name. """ propRef = eval("self.__class__.%s" % name) - propVal = eval("self.%s" % name) + propVal = propRef.fget(self) if type(propRef) == property: d = {}
Modified: trunk/ui/dPemMixinBase.py =================================================================== --- trunk/ui/dPemMixinBase.py 2004-11-30 21:29:53 UTC (rev 600) +++ trunk/ui/dPemMixinBase.py 2004-12-01 00:08:58 UTC (rev 601) @@ -120,7 +120,10 @@ import dabo.ui obj, frm = self, None while obj: - parent = obj.Parent + try: + parent = obj.Parent + except AttributeError: + break if isinstance(parent, dabo.ui.dForm): frm = parent break
©2004 noreply /AT/ paulmcnett .DO.T com |