cwvreg.py
branchtls-sprint
changeset 1016 26387b836099
parent 823 cb8ccbef8fa5
child 1037 1f3fae8d82b2
--- a/cwvreg.py	Mon Mar 09 12:12:53 2009 +0100
+++ b/cwvreg.py	Tue Mar 10 11:35:52 2009 +0100
@@ -410,7 +410,7 @@
             vobject.config = self.config
         return super(MulCnxCubicWebRegistry, self).select(vobjects, *args, **kwargs)
     
-from mx.DateTime import DateTime, Time, DateTimeDelta
+from datetime import datetime, date, time, timedelta
 
 YAMS_TO_PY = {
     'Boolean':  bool,
@@ -419,9 +419,9 @@
     'Bytes':    Binary,
     'Int':      int,
     'Float':    float,
-    'Date':     DateTime,
-    'Datetime': DateTime,
-    'Time':     Time,
-    'Interval': DateTimeDelta,
+    'Date':     date,
+    'Datetime': datetime,
+    'Time':     time,
+    'Interval': timedelta,
     }