Skip to content
Snippets Groups Projects
Commit bab5f515dc70 authored by Sandrine Ribeau's avatar Sandrine Ribeau
Browse files

cw 3.6 api update

parent fc1bcd923246
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment