Commit 54f8caff authored by Romain Courteaud's avatar Romain Courteaud

erp5_hal_json_style: export DateTime parameters

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