13 |
13 |
14 from cubicweb.selectors import implements, yes |
14 from cubicweb.selectors import implements, yes |
15 from cubicweb.schemaviewer import SchemaViewer |
15 from cubicweb.schemaviewer import SchemaViewer |
16 from cubicweb.view import EntityView, StartupView |
16 from cubicweb.view import EntityView, StartupView |
17 from cubicweb.common import tags, uilib |
17 from cubicweb.common import tags, uilib |
18 from cubicweb.web import uicfg, formwidgets, action |
18 from cubicweb.web import action |
19 from cubicweb.web.views import TmpFileViewMixin, primary, baseviews |
19 from cubicweb.web.views import TmpFileViewMixin, primary, baseviews |
20 |
|
21 |
|
22 uicfg.rcategories.tag_relation('!CWPermission', 'require_group', '*', 'primary') |
|
23 uicfg.rcategories.tag_attribute('EEtype', 'final', 'generated') |
|
24 uicfg.rcategories.tag_attribute('ERtype', 'final', 'generated') |
|
25 |
|
26 uicfg.rinlined.tag_relation('!CWRelation', 'relation_type', '*', True) |
|
27 uicfg.rinlined.tag_relation('!CWRelation', 'from_entity', '*', True) |
|
28 uicfg.rinlined.tag_relation('!CWRelation', 'to_entity', '*', True) |
|
29 |
|
30 uicfg.rwidgets.tag_attribute('RQLExpression', 'expression', formwidgets.TextInput) |
|
31 |
|
32 uicfg.rmode.tag_relation('*', 'state_of', '!CWEType', 'create') |
|
33 uicfg.rmode.tag_relation('*', 'transition_of', '!CWEType', 'create') |
|
34 uicfg.rmode.tag_relation('*', 'relation_type', '!CWRType', 'create') |
|
35 uicfg.rmode.tag_relation('*', 'from_entity', '!CWEType', 'link') |
|
36 uicfg.rmode.tag_relation('*', 'to_entity', '!CWEType', 'link') |
|
37 |
|
38 for attr in ('name', 'meta', 'final'): |
|
39 uicfg.rdisplay.tag_attribute('CWRType', attr, {}) |
|
40 for attr in ('name', 'meta', 'final', 'symetric', 'inlined'): |
|
41 uicfg.rdisplay.tag_attribute('CWRType', attr, {}) |
|
42 |
20 |
43 |
21 |
44 class ViewSchemaAction(action.Action): |
22 class ViewSchemaAction(action.Action): |
45 id = 'schema' |
23 id = 'schema' |
46 __select__ = yes() |
24 __select__ = yes() |