Commit e8311347 authored by Romain Courteaud's avatar Romain Courteaud

erp5_hal_json_style: export DateTime parameters

parent accc5397
......@@ -93,6 +93,8 @@ def toBasicTypes(obj):
return tuple(toBasicTypes(x) for x in obj)
if isinstance(obj, Message):
return obj.translate()
if isinstance(obj, DateTime):
return obj.rfc822()
try:
return {toBasicTypes(key): toBasicTypes(obj[key]) for key in obj}
except Exception:
......
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