[CMF-checkins] SVN: CMF/trunk/CMFCore/ActionInformation.py - don't
create an expression object if the value is empty
Yvo Schubbe
y.2006_ at wcm-solutions.de
Mon May 29 14:04:28 EDT 2006
Log message for revision 68357:
- don't create an expression object if the value is empty
Changed:
U CMF/trunk/CMFCore/ActionInformation.py
-=-
Modified: CMF/trunk/CMFCore/ActionInformation.py
===================================================================
--- CMF/trunk/CMFCore/ActionInformation.py 2006-05-29 17:57:24 UTC (rev 68356)
+++ CMF/trunk/CMFCore/ActionInformation.py 2006-05-29 18:04:27 UTC (rev 68357)
@@ -115,7 +115,7 @@
if isinstance(value, list):
value = tuple(value)
setattr(self, id, value)
- if id.endswith('_expr'):
+ if value and id.endswith('_expr'):
setattr( self, '%s_object' % id, Expression(value) )
security.declarePrivate('getInfoData')
More information about the CMF-checkins
mailing list