Commit e70b48ca authored by sylvain.thenault@logilab.fr's avatar sylvain.thenault@logilab.fr
Browse files

fix selectors argus

--HG--
branch : tls-sprint
parent 48cb1f42e79c
...@@ -13,7 +13,6 @@ from cubicweb.selectors import ( ...@@ -13,7 +13,6 @@ from cubicweb.selectors import (
authenticated_user, match_user_groups, match_search_state, authenticated_user, match_user_groups, match_search_state,
has_editable_relation, has_permission, has_add_permission, has_editable_relation, has_permission, has_add_permission,
) )
from cubicweb.web.action import Action from cubicweb.web.action import Action
from cubicweb.web.views import linksearch_select_url from cubicweb.web.views import linksearch_select_url
from cubicweb.web.views.baseviews import vid_from_rset from cubicweb.web.views.baseviews import vid_from_rset
...@@ -21,11 +20,11 @@ from cubicweb.web.views.baseviews import vid_from_rset ...@@ -21,11 +20,11 @@ from cubicweb.web.views.baseviews import vid_from_rset
_ = unicode _ = unicode
@objectify_selector @objectify_selector
def match_searched_etype(cls, req, rset, row=None, col=None, **kwargs): def match_searched_etype(cls, req, rset, **kwargs):
return req.match_search_state(rset) return req.match_search_state(rset)
@objectify_selector @objectify_selector
def view_is_not_default_view(cls, req, rset, row, col, **kwargs): def view_is_not_default_view(cls, req, rset, **kwargs):
# interesting if it propose another view than the current one # interesting if it propose another view than the current one
vid = req.form.get('vid') vid = req.form.get('vid')
if vid and vid != vid_from_rset(req, rset, cls.schema): if vid and vid != vid_from_rset(req, rset, cls.schema):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment