Log message for revision 68424:
  - don't compile expression if 'text' contains only whitespace

Changed:
  U   CMF/trunk/CMFCore/Expression.py

-=-
Modified: CMF/trunk/CMFCore/Expression.py
===================================================================
--- CMF/trunk/CMFCore/Expression.py     2006-06-01 07:44:06 UTC (rev 68423)
+++ CMF/trunk/CMFCore/Expression.py     2006-06-01 08:16:10 UTC (rev 68424)
@@ -34,11 +34,11 @@
 
     def __init__(self, text):
         self.text = text
-        if text:
+        if text.strip():
             self._v_compiled = getEngine().compile(text)
 
     def __call__(self, econtext):
-        if not self.text:
+        if not self.text.strip():
             return ''
         compiled = self._v_compiled
         if compiled is None:

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

Reply via email to