Commit e7178d53 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Better order

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12655 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1383ae4d
......@@ -149,7 +149,7 @@ class Getter(Method):
return evaluateTales(instance, value)
else:
return value
if default is not None and self._is_tales_type and kw.get('evaluate', 1):
if self._is_tales_type and default is not None and kw.get('evaluate', 1):
return evaluateTales(instance, default)
return default
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment