Commit 045a9efb authored by Romain Courteaud's avatar Romain Courteaud

Serialize datetime to transmit it.

Thanks to Tristan Cavelier
parent b29b0cc1
...@@ -497,9 +497,10 @@ elif (mode == \'root\') or (mode == \'traverse\'):\n ...@@ -497,9 +497,10 @@ elif (mode == \'root\') or (mode == \'traverse\'):\n
# traversed_document.log(property_name)\n # traversed_document.log(property_name)\n
property_value = traversed_document.getProperty(property_name, d=None)\n property_value = traversed_document.getProperty(property_name, d=None)\n
if (property_value is not None):\n if (property_value is not None):\n
if not same_type(property_value, DateTime()):\n if same_type(property_value, DateTime()):\n
# XXX Serialize DateTime\n # Serialize DateTime\n
result_dict[property_name] = property_value \n property_value = rfc822()\n
result_dict[property_name] = property_value \n
\n \n
##############\n ##############\n
# XXX Custom slapos code\n # XXX Custom slapos code\n
......
14 15
\ No newline at end of file \ No newline at end of file
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