Hello,

I'm getting an error report using

Field('When_Actually_Delivered', requires =
IS_NULL_OR(IS_DATETIME())),

The form is created with SQLFORM, and the input in the textbox was as
per format quidelines from error message, so seems to be a bug in the
validator...

 File "C:\Program Files\Hub Pages\web2py\applications\HubForms\modules
\ComplaintSystem.py", line 100, in ReadOnlyForm
    form = SQLFORM(table, record= record, fields=fields, readonly =
True, showid=showid)
  File "C:\Program Files\Hub Pages\web2py\gluon\sqlhtml.py", line 693,
in __init__
    inp = field.formatter(default)
  File "C:\Program Files\Hub Pages\web2py\gluon\sql.py", line 2766, in
formatter
    value = item.formatter(value)
  File "C:\Program Files\Hub Pages\web2py\gluon\validators.py", line
2316, in formatter
    return self.other.formatter(value)
  File "C:\Program Files\Hub Pages\web2py\gluon\validators.py", line
2076, in formatter
    year = value.year
AttributeError: 'str' object has no attribute 'year'

Reply via email to