Commit 208accbd authored by Romain Courteaud's avatar Romain Courteaud Committed by Rafael Monnerat

Serialize datetime to transmit it.

Thanks to Tristan Cavelier
parent 951c503f
...@@ -497,8 +497,9 @@ elif (mode == \'root\') or (mode == \'traverse\'):\n ...@@ -497,8 +497,9 @@ 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
property_value = rfc822()\n
result_dict[property_name] = property_value \n result_dict[property_name] = property_value \n
\n \n
##############\n ##############\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