17 from cubicweb.common.uilib import ureport_as_html |
17 from cubicweb.common.uilib import ureport_as_html |
18 from cubicweb.web import uicfg, action |
18 from cubicweb.web import uicfg, action |
19 from cubicweb.web.views import TmpFileViewMixin, baseviews |
19 from cubicweb.web.views import TmpFileViewMixin, baseviews |
20 |
20 |
21 |
21 |
22 uicfg.rcategories.set_rtag('primary', 'require_group', 'subject', 'CWPermission') |
22 uicfg.rcategories.tag_relation('primary', ('CWPermission', 'require_group', '*'), 'subject') |
23 uicfg.rcategories.set_rtag('generated', 'final', 'subject', 'EEtype') |
23 uicfg.rcategories.tag_relation('generated', ('EEtype', 'final', '*'), 'subject') |
24 uicfg.rcategories.set_rtag('generated', 'final', 'subject', 'ERtype') |
24 uicfg.rcategories.tag_relation('generated', ('ERtype', 'final', '*'), 'subject') |
25 uicfg.rinlined.set_rtag(True, 'relation_type', 'subject', 'CWRelation') |
25 uicfg.rinlined.tag_relation(True, ('CWRelation', 'relation_type', '*'), 'subject') |
26 uicfg.rinlined.set_rtag(True, 'from_entity', 'subject', 'CWRelation') |
26 uicfg.rinlined.tag_relation(True, ('CWRelation', 'from_entity', '*'), 'subject') |
27 uicfg.rinlined.set_rtag(True, 'to_entity', 'subject', 'CWRelation') |
27 uicfg.rinlined.tag_relation(True, ('CWRelation', 'to_entity', '*'), 'subject') |
28 uicfg.rwidgets.set_rtag('StringWidget', 'expression', 'subject', 'RQLExpression') |
28 uicfg.rwidgets.tag_relation('StringWidget', ('RQLExpression', 'expression', '*'), 'subject') |
29 |
29 |
30 uicfg.rmode.set_rtag('create', 'state_of', 'object', otype='CWEType') |
30 uicfg.rmode.tag_relation('create', ('*', 'state_of', 'CWEType'), 'object') |
31 uicfg.rmode.set_rtag('create', 'transition_of', 'object', otype='CWEType') |
31 uicfg.rmode.tag_relation('create', ('*', 'transition_of', 'CWEType'), 'object') |
32 uicfg.rmode.set_rtag('create', 'relation_type', 'object', otype='CWRType') |
32 uicfg.rmode.tag_relation('create', ('*', 'relation_type', 'CWRType'), 'object') |
33 uicfg.rmode.set_rtag('link', 'from_entity', 'object', otype='CWEType') |
33 uicfg.rmode.tag_relation('link', ('*', 'from_entity', 'CWEType'), 'object') |
34 uicfg.rmode.set_rtag('link', 'to_entity', 'object', otype='CWEType') |
34 uicfg.rmode.tag_relation('link', ('*', 'to_entity', 'CWEType'), 'object') |
35 |
35 |
36 |
36 |
37 class ViewSchemaAction(action.Action): |
37 class ViewSchemaAction(action.Action): |
38 id = 'schema' |
38 id = 'schema' |
39 __select__ = yes() |
39 __select__ = yes() |