web/views/autoform.py
changeset 5679 0f2ded880d01
parent 5627 a7e40cccdc9b
parent 5656 abe97430b3f5
child 5696 98d390c28edb
equal deleted inserted replaced
5676:aa04ccb8dd62 5679:0f2ded880d01
   648     _default_form_action_path = 'validateform'
   648     _default_form_action_path = 'validateform'
   649 
   649 
   650     # pre 3.8.3 compat
   650     # pre 3.8.3 compat
   651     def set_action(self, action):
   651     def set_action(self, action):
   652         self._action = action
   652         self._action = action
   653     @deprecated('[3.9] use form.form_action()')
       
   654     def get_action(self):
   653     def get_action(self):
   655         try:
   654         try:
   656             return self._action
   655             return self._action
   657         except AttributeError:
   656         except AttributeError:
   658             return self._cw.build_url(self._default_form_action_path)
   657             return self._cw.build_url(self._default_form_action_path)
   659     action = property(get_action, set_action)
   658     action = property(deprecated('[3.9] use form.form_action()')(get_action),
       
   659                       set_action)
   660 
   660 
   661     @iclassmethod
   661     @iclassmethod
   662     def field_by_name(cls_or_self, name, role=None, eschema=None):
   662     def field_by_name(cls_or_self, name, role=None, eschema=None):
   663         """return field with the given name and role. If field is not explicitly
   663         """return field with the given name and role. If field is not explicitly
   664         defined for the form but `eclass` is specified, guess_field will be
   664         defined for the form but `eclass` is specified, guess_field will be