Some code that worked fine on 1.64.3 isn't working on 1.72.3, to which
I just upgraded. I upgraded from source, so I wouldn't be surprised if
I'm missing a file or something like that. The error message is:

  File "C:\web2py\gluon\sqlhtml.py", line 769, in accepts
    for key in self.errors.keys():
AttributeError: 'lazyT' object has no attribute 'keys'

and is being generated by the following code which is being called as
part of a form validator routine:

@auth.requires_login()
def valid_datetimes(form):
#-------------------------------------------------------------------------------
        """Sets form.errors if stop before start"""
        if form.vars.stop < form.vars.start:
                form.errors=T('Error: Stop is before start')
                return False
        return True

The test condition was that form.vars.stop < form.vars.start,
triggering the form.errors getting assigned.

Anyone have any insight into what might be happening here? I searched
the web2py group for a similar thread but came up empty handed.

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to