web/views/schema.py
branchtls-sprint
changeset 1580 e26bbb0a6eb9
parent 1556 b64a0fe1fc86
child 1720 14c9a0a1aca1
--- a/web/views/schema.py	Thu Apr 30 12:36:48 2009 +0200
+++ b/web/views/schema.py	Thu Apr 30 13:05:40 2009 +0200
@@ -15,17 +15,17 @@
 from cubicweb.schemaviewer import SchemaViewer
 from cubicweb.view import EntityView, StartupView
 from cubicweb.common import tags, uilib
-from cubicweb.web import uicfg, action
+from cubicweb.web import uicfg, formwidgets, action
 from cubicweb.web.views import TmpFileViewMixin, primary, baseviews
 
 
 uicfg.rcategories.tag_relation('primary', ('CWPermission', 'require_group', '*'), 'subject')
-uicfg.rcategories.tag_relation('generated', ('EEtype', 'final', '*'), 'subject')
-uicfg.rcategories.tag_relation('generated', ('ERtype', 'final', '*'), 'subject')
+uicfg.rcategories.tag_attribute('generated', 'EEtype', 'final')
+uicfg.rcategories.tag_attribute('generated', 'ERtype', 'final')
 uicfg.rinlined.tag_relation(True, ('CWRelation', 'relation_type', '*'), 'subject')
 uicfg.rinlined.tag_relation(True, ('CWRelation', 'from_entity', '*'), 'subject')
 uicfg.rinlined.tag_relation(True, ('CWRelation', 'to_entity', '*'), 'subject')
-uicfg.rwidgets.tag_relation('StringWidget', ('RQLExpression', 'expression', '*'), 'subject')
+uicfg.rwidgets.tag_attribute(formwidgets.TextInput, 'RQLExpression', 'expression')
 
 uicfg.rmode.tag_relation('create', ('*', 'state_of', 'CWEType'), 'object')
 uicfg.rmode.tag_relation('create', ('*', 'transition_of', 'CWEType'), 'object')