web/views/autoform.py
branchstable
changeset 5656 abe97430b3f5
parent 5612 177a9a059717
child 5679 0f2ded880d01
child 5693 8af6623f3d4e
--- a/web/views/autoform.py	Tue Jun 01 17:44:55 2010 +0200
+++ b/web/views/autoform.py	Thu Jun 03 10:20:00 2010 +0200
@@ -650,13 +650,13 @@
     # pre 3.8.3 compat
     def set_action(self, action):
         self._action = action
-    @deprecated('[3.9] use form.form_action()')
     def get_action(self):
         try:
             return self._action
         except AttributeError:
             return self._cw.build_url(self._default_form_action_path)
-    action = property(get_action, set_action)
+    action = property(deprecated('[3.9] use form.form_action()')(get_action),
+                      set_action)
 
     @iclassmethod
     def field_by_name(cls_or_self, name, role=None, eschema=None):