[web/views] Clean up confusing backwards compatibility code
Dead code since fbb370195199, related to #4943392.
--- 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