Commit 7233208a authored by Nicolas Wavrant's avatar Nicolas Wavrant

Accessor/Base.py: allow tales expressions as base types

parent 061e9f95
...@@ -35,6 +35,7 @@ from Acquisition import aq_base ...@@ -35,6 +35,7 @@ from Acquisition import aq_base
from zLOG import LOG from zLOG import LOG
from DateTime import DateTime from DateTime import DateTime
from Products.CMFCore.Expression import Expression
from Products.ERP5Type.Cache import CachingMethod from Products.ERP5Type.Cache import CachingMethod
from Products.ERP5Type.PsycoWrapper import psyco from Products.ERP5Type.PsycoWrapper import psyco
from AccessControl.ImplPython import rolesForPermissionOn from AccessControl.ImplPython import rolesForPermissionOn
...@@ -56,6 +57,8 @@ builtin_type_tuple = ( ...@@ -56,6 +57,8 @@ builtin_type_tuple = (
types.ListType, types.ListType,
types.DictType, types.DictType,
DateTime, DateTime,
# It seems some magic converts automatically string in Tales Expression if they follow some format
Expression,
) )
class Setter(Method): class Setter(Method):
......
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