web/formfields.py
changeset 8695 358d8bed9626
parent 8666 1dd655788ece
child 9147 01124cfd4b1f
child 9179 570208f74a84
equal deleted inserted replaced
8694:d901c36bcfce 8695:358d8bed9626
   986             value = value.strip()
   986             value = value.strip()
   987             if not value:
   987             if not value:
   988                 return None
   988                 return None
   989             try:
   989             try:
   990                 value = form._cw.parse_datetime(value, self.etype)
   990                 value = form._cw.parse_datetime(value, self.etype)
   991             except ValueError, ex:
   991             except ValueError as ex:
   992                 raise ProcessFormError(unicode(ex))
   992                 raise ProcessFormError(unicode(ex))
   993         return value
   993         return value
   994 
   994 
   995 
   995 
   996 class DateTimeField(DateField):
   996 class DateTimeField(DateField):