[fix] this check was too restrictive and broke tests 3.26
authorLaurent Peuch <cortex@worlddomination.be>
Thu, 14 Mar 2019 16:17:49 +0100
branch3.26
changeset 12511 e312461d3200
parent 12510 7f4411168ed0
child 12562 7bb677060ebd
[fix] this check was too restrictive and broke tests
cubicweb/cwvreg.py
--- a/cubicweb/cwvreg.py	Thu Mar 14 16:09:26 2019 +0100
+++ b/cubicweb/cwvreg.py	Thu Mar 14 16:17:49 2019 +0100
@@ -250,15 +250,6 @@
                       key=lambda x: x.order)
 
     def possible_actions(self, req, rset=None, **kwargs):
-        if not kwargs:
-            raise ValueError("ActionsRegistry.possible_actions should always be "
-                             "called with additional keywords arguments (in "
-                             "addition of req and the optional argument rset) "
-                             "to optimised cache computation but you provided "
-                             "none.\n\nFor exemple if you are working on a view, "
-                             "provide the view as a keyword argument to "
-                             "possible_actions like this: view=my_view.")
-
         if rset is None:
             actions = self.poss_visible_objects(req, rset=rset, **kwargs)
         else: