# HG changeset patch # User RĂ©mi Cardona # Date 1428485364 -7200 # Node ID e8ac062d4b20a557cf898f616946042d745ce21d # Parent 2a578b9e7ad8f6262c7bbb8bf48a1647d1b9743e [web/views] Clean up confusing backwards compatibility code Dead code since fbb370195199, related to #4943392. diff -r 2a578b9e7ad8 -r e8ac062d4b20 web/views/autoform.py --- a/web/views/autoform.py Thu Jul 02 09:25:45 2015 +0200 +++ b/web/views/autoform.py Wed Apr 08 11:29:24 2015 +0200 @@ -726,15 +726,6 @@ # action on the form tag _default_form_action_path = 'validateform' - @deprecated('[3.18] you should override form_action()') - def set_action(self, action): - self._action = action - - @deprecated('[3.18] use form_action()') - def get_action(self): - return self._action - - @iclassmethod def field_by_name(cls_or_self, name, role=None, eschema=None): """return field with the given name and role. If field is not explicitly diff -r 2a578b9e7ad8 -r e8ac062d4b20 web/views/forms.py --- a/web/views/forms.py Thu Jul 02 09:25:45 2015 +0200 +++ b/web/views/forms.py Wed Apr 08 11:29:24 2015 +0200 @@ -241,10 +241,7 @@ _default_form_action_path = 'edit' def form_action(self): - try: - action = self.get_action() # avoid spurious warning w/ autoform bw compat property - except AttributeError: - action = self.action + action = self.action if action is None: return self._cw.build_url(self._default_form_action_path) return action