Commit 01f0d07a authored by Nicolas Delaby's avatar Nicolas Delaby

Handle date type in PropertyManager

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24956 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fdb481a8
......@@ -24,6 +24,7 @@ from Products.CMFCore.Expression import Expression
from Products.ERP5Type import _dtmldir
from Acquisition import aq_base
from zExceptions import BadRequest
from DateTime import DateTime
class ERP5PropertyManager(PropertyManager):
"""
......@@ -98,6 +99,8 @@ def PropertyManager_setProperty(self, id, value, type=None):
type = 'text'
else:
type = 'string'
elif isinstance(value, DateTime):
type = 'date'
else:
type = 'string'
......
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