Traceback (most recent call last): File "C:\web2py\gluon
\restricted.py", line 173, in restricted
exec ccode in environment
File "C:/web2py/applications/myapp/controllers/admin.py", line 962,
in <module>
File "C:\web2py\gluon\globals.py", line 96, in <lambda>
self._caller = lambda f: f()
File "C:\web2py\gluon\tools.py", line 1847, in f
return action(*a, **b)
File "C:/web2py/applications/myapp/controllers/admin.py", line 224,
in res
_width='100%%',
File "C:\web2py\gluon\sqlhtml.py", line 992, in __init__
r = str(field.formatter(r))
File "C:\web2py\gluon\sql.py", line 2640, in formatter
value = item.formatter(value)
File "C:\web2py\gluon\validators.py", line 2053, in formatter
return self.other.formatter(value)
File "C:\web2py\gluon\validators.py", line 1858, in formatter
return value.strftime(self.format)
AttributeError: 'str' object has no attribute 'strftime'
I just installed the latest version of web2py 1.74.8. Prior to the new
install, code that is failing ran flawlessly for the last 9 months
without intervention (yeah web2py!). But with the new version, I'm
getting the ticket shown above.
I've continue to inspect my db and surrounding code very carefully.
The error suggests that a validator is looking for a DATETIME but
finds a string. I'm pretty sure at this point that there's no DATETIME
validator in my db that isn't declared properly as a string.
I thought maybe a key word conflict with MySQL. Some of my datetime
fields are named 'start' and 'stop', but I checked MySQL reserved
words and I'm still in the clear on that front.
What else could this possibly be?
p.s. is there a way to cut and paste tickets into this text box such
that I don't have to spend 10 min reformatting the darn thing by
adding line feeds?
p.p.s. Might I suggest that the powers that be add the version number
of web2py to the header of any ticket so that tickets are self-
documenting?
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.