[web/views] Clean up confusing backwards compatibility code
authorRémi Cardona <remi.cardona@logilab.fr>
Wed, 08 Apr 2015 11:29:24 +0200
changeset 10509 e8ac062d4b20
parent 10508 2a578b9e7ad8
child 10510 51321946da37
[web/views] Clean up confusing backwards compatibility code Dead code since fbb370195199, related to #4943392.
web/views/autoform.py
web/views/forms.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
--- 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