• 3094 views
  • 0 comments
  • loading...

form.accepts()

Similar to FORM.accepts but also does insert, update or delete in DAL. If detect_record_change is True than:

        form.record_changed = False (record is properly validated/submitted)
        form.record_changed = True (record cannot be submitted because changed)

If detect_record_change == False than:

        form.record_changed = None



accepts(request_vars, session=None, formname='%(tablename)s/%(record_id)s', keepvalues=None, onvalidation=None, dbio=True, hideerror=False, detect_record_change=False, **kwargs)

Attributes / Arguments


loading...

Sources / Reference

" " by © Copyright 2014, web2py-developers is licensed under Creative Common License BY-NC-ND 3.0


Comments

loading...

Powered by
Web2py

Hosted on
www.pythonanywhere.com
(affiliated link)