cwvreg.py
branchtls-sprint
changeset 1016 26387b836099
parent 823 cb8ccbef8fa5
child 1037 1f3fae8d82b2
equal deleted inserted replaced
1014:4792a1bb72a9 1016:26387b836099
   408             vobject.vreg = self
   408             vobject.vreg = self
   409             vobject.schema = self.schema
   409             vobject.schema = self.schema
   410             vobject.config = self.config
   410             vobject.config = self.config
   411         return super(MulCnxCubicWebRegistry, self).select(vobjects, *args, **kwargs)
   411         return super(MulCnxCubicWebRegistry, self).select(vobjects, *args, **kwargs)
   412     
   412     
   413 from mx.DateTime import DateTime, Time, DateTimeDelta
   413 from datetime import datetime, date, time, timedelta
   414 
   414 
   415 YAMS_TO_PY = {
   415 YAMS_TO_PY = {
   416     'Boolean':  bool,
   416     'Boolean':  bool,
   417     'String' :  unicode,
   417     'String' :  unicode,
   418     'Password': str,
   418     'Password': str,
   419     'Bytes':    Binary,
   419     'Bytes':    Binary,
   420     'Int':      int,
   420     'Int':      int,
   421     'Float':    float,
   421     'Float':    float,
   422     'Date':     DateTime,
   422     'Date':     date,
   423     'Datetime': DateTime,
   423     'Datetime': datetime,
   424     'Time':     Time,
   424     'Time':     time,
   425     'Interval': DateTimeDelta,
   425     'Interval': timedelta,
   426     }
   426     }
   427 
   427