fix dumb name errors
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 14 Jan 2010 11:14:40 +0100
changeset 4241 da919ea92880
parent 4240 6109962761f2
child 4248 d375643eea43
fix dumb name errors
web/formfields.py
--- a/web/formfields.py	Thu Jan 14 11:13:22 2010 +0100
+++ b/web/formfields.py	Thu Jan 14 11:14:40 2010 +0100
@@ -672,7 +672,7 @@
         # directly, so handle that case :
         if isinstance(date, basestring):
             try:
-                date = form.parse_datetime(wdgdate, 'Date')
+                date = form.parse_datetime(date, 'Date')
             except ValueError, ex:
                 raise ProcessFormError(unicode(ex))
         return date
@@ -688,7 +688,7 @@
         # directly, so handle that case :
         if isinstance(date, basestring):
             try:
-                date = form.parse_datetime(wdgdate, 'Datetime')
+                date = form.parse_datetime(date, 'Datetime')
             except ValueError, ex:
                 raise ProcessFormError(unicode(ex))
         return date
@@ -705,7 +705,7 @@
         # directly, so handle that case :
         if isinstance(time, basestring):
             try:
-                time = form.parse_datetime(wdgdate, 'Time')
+                time = form.parse_datetime(time, 'Time')
             except ValueError, ex:
                 raise ProcessFormError(unicode(ex))
         return time