I tried the following

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


and now I get a new error message:

  File "C:\web2py\gluon\sqlhtml.py", line 771, in accepts
    and self.table[key].type=='upload' \
  File "C:\web2py\gluon\sql.py", line 1481, in __getitem__
    return dict.__getitem__(self, str(key))
KeyError: 'api'


Obviously, there is no api field. But you seem to imply I can do this.
Am I missing something?

--

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