dabo Commit
Revision 4279
Date: 2008-07-14 18:49:46 -0700 (Mon, 14 Jul 2008)
Author: Nate
Trac: http://svn.dabodev.com/trac/dabo/changeset/4279
Changed:
U trunk/dabo/lib/propertyHelperMixin.py
Log:
The NameError caught all the values that were string types. However,
Sizer_BorderSides is a list, so I added a TypeError to catch it.
Diff:
Modified: trunk/dabo/lib/propertyHelperMixin.py
===================================================================
--- trunk/dabo/lib/propertyHelperMixin.py 2008-07-13 23:49:48 UTC (rev
4278)
+++ trunk/dabo/lib/propertyHelperMixin.py 2008-07-15 01:49:46 UTC (rev
4279)
@@ -232,6 +232,8 @@
raise AttributeError, "'%s' is not a
property." % prop
try:
valToSet = eval(val, context)
+ except TypeError:
+ valToSet = val
except NameError:
valToSet = val
setattr(self, prop, valToSet)
_______________________________________________
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]