[CMF-checkins] SVN: CMF/trunk/CMFCore/Expression.py - don't compile
expression if 'text' contains only whitespace
Yvo Schubbe
y.2006_ at wcm-solutions.de
Thu Jun 1 04:16:11 EDT 2006
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:
More information about the CMF-checkins
mailing list