dabo Commit
Revision 4282
Date: 2008-07-16 08:26:37 -0700 (Wed, 16 Jul 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4282
Changed:
U trunk/dabo/lib/propertyHelperMixin.py
Log:
Stylistic update only.
Diff:
Modified: trunk/dabo/lib/propertyHelperMixin.py
===================================================================
--- trunk/dabo/lib/propertyHelperMixin.py 2008-07-16 15:04:02 UTC (rev
4281)
+++ trunk/dabo/lib/propertyHelperMixin.py 2008-07-16 15:26:37 UTC (rev
4282)
@@ -232,12 +232,8 @@
raise AttributeError, "'%s' is not a
property." % prop
try:
valToSet = eval(val, context)
- except TypeError:
+ except (TypeError, SyntaxError, NameError):
valToSet = val
- except SyntaxError:
- 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]