# HG changeset patch # User Sandrine Ribeau <sandrine.ribeau@logilab.fr> # Date 1260367315 -3600 # Wed Dec 09 15:01:55 2009 +0100 # Node ID bab5f515dc70d966592a1d7da25c2ee3113f3821 # Parent fc1bcd923246717e21ef3a568ae698d84d561396 cw 3.6 api update diff --git a/views.py b/views.py --- a/views.py +++ b/views.py @@ -14,7 +14,7 @@ from simplejson import dumps -from cubicweb.selectors import (one_line_rset, but_etype, implements, +from cubicweb.selectors import (one_line_rset, implements, has_permission, relation_possible, yes, match_kwargs, score_entity, authenticated_user) @@ -295,7 +295,7 @@ class AddCommentAction(LinkToEntityAction): """add comment is like reply for everything but Comment""" __regid__ = 'reply_comment' - __select__ = LinkToEntityAction.__select__ & but_etype('Comment') + __select__ = LinkToEntityAction.__select__ & ~implements('Comment') etype = 'Comment' rtype = 'comments'