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')

_______________________________________________
CMF-checkins mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/cmf-checkins

Reply via email to