Commit a508429d authored by Jérome Perrin's avatar Jérome Perrin

tales and overrides exists on all fields. This BW should no longuer be needed.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16871 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 187c2a84
......@@ -200,10 +200,6 @@ def getFieldValue(self, field, id, **kw):
"""
Return a callable expression
"""
# FIXME: backwards compat hack to make sure tales dict exists
if not hasattr(self, 'tales'):
self.tales = {}
tales_expr = self.tales.get(id, "")
if tales_expr:
# TALESMethod is persistent object, so that we cannot cache original one.
......@@ -212,10 +208,6 @@ def getFieldValue(self, field, id, **kw):
clone = TALESMethod(tales_expr._text)
return TALESValue(clone)
# FIXME: backwards compat hack to make sure overrides dict exists
if not hasattr(self, 'overrides'):
self.overrides = {}
override = self.overrides.get(id, "")
if override:
return OverrideValue(override)
......
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