diff --git a/product/ERP5Type/Accessor/List.py b/product/ERP5Type/Accessor/List.py index 593e05049fc9ac0fea6b826bbfbec63d29b647d5..0ed472f54505d3790dcc9d944e57e10a1c3fa083 100644 --- a/product/ERP5Type/Accessor/List.py +++ b/product/ERP5Type/Accessor/List.py @@ -26,13 +26,10 @@ # ############################################################################## -from Base import func_code, type_definition, list_types, ATTRIBUTE_PREFIX, Method +from Base import func_code, type_definition, list_types,\ + ATTRIBUTE_PREFIX, Method, evaluateTales from TypeDefinition import asList, identity import Base - -from Products.CMFCore.Expression import Expression -from Products.ERP5Type.Utils import createExpressionContext -from Products.ERP5Type.Cache import CachingMethod from Products.ERP5Type.PsycoWrapper import psyco from zLOG import LOG @@ -206,14 +203,6 @@ class SetSetter(Method): method(*args, **kw) if self._reindex: instance.reindexObject() - -def _evaluateTales(instance=None, value=None): - expression = Expression(value) - econtext = createExpressionContext(instance) - return expression(econtext) - -evaluateTales = CachingMethod(_evaluateTales, id = 'evaluateTales', cache_duration=300) - class DefaultGetter(Method): """ Gets the first item of a list