Author: reinhard
Date: 2008-07-14 03:01:02 -0500 (Mon, 14 Jul 2008)
New Revision: 9886
Modified:
trunk/gnue-common/src/rpc/drivers/xmlrpc/typeconv.py
Log:
Use new iso8601 module.
Modified: trunk/gnue-common/src/rpc/drivers/xmlrpc/typeconv.py
===================================================================
--- trunk/gnue-common/src/rpc/drivers/xmlrpc/typeconv.py 2008-07-10 20:09:21 UTC (rev 9885)
+++ trunk/gnue-common/src/rpc/drivers/xmlrpc/typeconv.py 2008-07-14 08:01:02 UTC (rev 9886)
@@ -25,7 +25,7 @@
import datetime
import mx.DateTime
-from gnue.common.utils import GDateTime
+from gnue.common.lib import iso8601
# -----------------------------------------------------------------------------
# Check wether a given item is an id-dictionary representing a server object
@@ -191,8 +191,7 @@
# Date/Time/DateTime
elif isinstance (value, xmlrpclib.DateTime):
- result = GDateTime.parseISO (value.value)
- return result
+ return iso8601.parse_iso (value.value)
# List
elif isinstance (value, list):
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.