# HG changeset patch # User Laurent Peuch # Date 1552576669 -3600 # Node ID e312461d32000ae666a1fde50e58b628cb23bd7e # Parent 7f4411168ed0ce5c406f18bd24b1d405543cd6da [fix] this check was too restrictive and broke tests diff -r 7f4411168ed0 -r e312461d3200 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: