equal
deleted
inserted
replaced
20 """ |
20 """ |
21 from logilab.common.testlib import unittest_main |
21 from logilab.common.testlib import unittest_main |
22 |
22 |
23 from cubicweb.devtools.testlib import CubicWebTC |
23 from cubicweb.devtools.testlib import CubicWebTC |
24 from cubicweb import CW_SOFTWARE_ROOT as BASE, Binary, UnknownProperty |
24 from cubicweb import CW_SOFTWARE_ROOT as BASE, Binary, UnknownProperty |
25 from cubicweb.selectors import (match_user_groups, implements, |
25 from cubicweb.selectors import (match_user_groups, is_instance, |
26 specified_etype_implements, rql_condition, |
26 specified_etype_implements, rql_condition, |
27 traced_selection) |
27 traced_selection) |
28 from cubicweb.web import NoSelectableObject |
28 from cubicweb.web import NoSelectableObject |
29 from cubicweb.web.action import Action |
29 from cubicweb.web.action import Action |
30 from cubicweb.web.views import (primary, baseviews, tableview, editforms, |
30 from cubicweb.web.views import (primary, baseviews, tableview, editforms, |
474 |
474 |
475 |
475 |
476 |
476 |
477 class CWETypeRQLAction(Action): |
477 class CWETypeRQLAction(Action): |
478 __regid__ = 'testaction' |
478 __regid__ = 'testaction' |
479 __select__ = implements('CWEType') & rql_condition('X name "CWEType"') |
479 __select__ = is_instance('CWEType') & rql_condition('X name "CWEType"') |
480 title = 'bla' |
480 title = 'bla' |
481 |
481 |
482 class RQLActionTC(ViewSelectorTC): |
482 class RQLActionTC(ViewSelectorTC): |
483 |
483 |
484 def setUp(self): |
484 def setUp(self): |