Skip to content
Snippets Groups Projects
Commit 434e5a30b61a authored by sylvain thenault's avatar sylvain thenault
Browse files

selectors update

parent 79b872158243
No related branches found
No related tags found
No related merge requests found
......@@ -15,8 +15,8 @@
from cubicweb.common.uilib import rql_for_eid, cut, safe_cut, ajax_replace_url
from cubicweb.common.view import EntityView
from cubicweb.common.mixins import TreeViewMixIn
from cubicweb.common.selectors import (kwargs_selector, searchstate_accept_selector,
onelinerset_selector, accept_selector)
from cubicweb.common.selectors import (match_kwargs, searchstate_accept,
one_line_rset, accept)
from cubicweb.web.views import baseviews
from cubicweb.web import stdmsgs
......@@ -136,7 +136,7 @@
id = 'inlinecomment'
accepts = ('Any',) # XXX should support the comments relation
requires = ('Comment',)
__selectors__ = (onelinerset_selector, accept_selector)
__selectors__ = (one_line_rset, accept)
def cell_call(self, row, col):
entity = self.entity(row, col)
......@@ -148,7 +148,7 @@
title = None # hidden
requires = ('Comment',)
accepts = ('Comment',)
__selectors__ = (kwargs_selector,)
__selectors__ = (match_kwargs,)
expected_kwargs = ('commented',)
EDITION_BODY = u"""
......@@ -313,7 +313,7 @@
class EditCommentAction(EntityAction):
category = 'hidden'
__selectors__ = (onelinerset_selector, searchstate_accept_selector)
__selectors__ = (one_line_rset, searchstate_accept)
accepts = ('Comment',)
etype = 'Comment'
schema_action = 'update'
......
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