Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
ed106bb2dcd3
Commit
e70b48ca
authored
Feb 18, 2009
by
sylvain.thenault@logilab.fr
Browse files
fix selectors argus
--HG-- branch : tls-sprint
parent
48cb1f42e79c
Changes
1
Show whitespace changes
Inline
Side-by-side
web/views/actions.py
View file @
ed106bb2
...
...
@@ -13,7 +13,6 @@ from cubicweb.selectors import (
authenticated_user
,
match_user_groups
,
match_search_state
,
has_editable_relation
,
has_permission
,
has_add_permission
,
)
from
cubicweb.web.action
import
Action
from
cubicweb.web.views
import
linksearch_select_url
from
cubicweb.web.views.baseviews
import
vid_from_rset
...
...
@@ -21,11 +20,11 @@ from cubicweb.web.views.baseviews import vid_from_rset
_
=
unicode
@
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
)
@
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
vid
=
req
.
form
.
get
(
'vid'
)
if
vid
and
vid
!=
vid_from_rset
(
req
,
rset
,
cls
.
schema
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment