/[gnue]/gnue-appserver/src/geasInstance.py
ViewVC logotype

Diff of /gnue-appserver/src/geasInstance.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.30 by reinhard, Sun Oct 19 11:46:45 2003 UTC revision 1.31 by reinhard, Sun Oct 19 15:39:05 2003 UTC
# Line 97  class geasInstance: Line 97  class geasInstance:
97      elif propertydef.gnue_type == "time":      elif propertydef.gnue_type == "time":
98        if isinstance (value, mx.DateTime.DateTimeType):        if isinstance (value, mx.DateTime.DateTimeType):
99          return value.time          return value.time
100          # some dbdrivers return DateTimeDelta values
101          elif isinstance (value, mx.DateTime.DateTimeDeltaType):
102            return str (value)
103        elif isinstance (value, types.UnicodeType):        elif isinstance (value, types.UnicodeType):
104          # TODO: Check if valid time          # TODO: Check if valid time
105          return value.encode ('utf-8')          return value.encode ('utf-8')

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26