fix compatibility class EntityAction: test for accepts() before has_condition() tls-sprint
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 18 Feb 2009 11:35:54 +0100
branchtls-sprint
changeset 768 878e6139a46b
parent 767 b094cf8535b4
child 769 2b49c9932d8c
fix compatibility class EntityAction: test for accepts() before has_condition()
web/action.py
--- a/web/action.py	Wed Feb 18 11:11:05 2009 +0100
+++ b/web/action.py	Wed Feb 18 11:35:54 2009 +0100
@@ -95,8 +95,9 @@
                               __redirectvid=self.req.form.get('__redirectvid', ''))
 
 class EntityAction(Action):
-    """DEPRECATED / BACKWARD COMPAT"""
-    registered = deprecate(accepts_compat(condition_compat(Action.registered)),
+    """DEPRECATED / BACKWARD COMPAT
+    """
+    registered = deprecate(condition_compat(accepts_compat(Action.registered)),
                            msg='EntityAction is deprecated, use Action with '
                            'appropriate selectors')