dabo Commit
Revision 4299
Date: 2008-07-20 16:33:10 -0700 (Sun, 20 Jul 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4299
Changed:
U trunk/dabo/lib/propertyHelperMixin.py
Log:
Added catching an AttributeError when setting properties from attProperties.
Diff:
Modified: trunk/dabo/lib/propertyHelperMixin.py
===================================================================
--- trunk/dabo/lib/propertyHelperMixin.py 2008-07-19 19:18:01 UTC (rev
4298)
+++ trunk/dabo/lib/propertyHelperMixin.py 2008-07-20 23:33:10 UTC (rev
4299)
@@ -232,7 +232,7 @@
raise AttributeError, "'%s' is not a
property." % prop
try:
valToSet = eval(val, context)
- except (TypeError, SyntaxError, NameError):
+ except (TypeError, SyntaxError, NameError,
AttributeError):
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]