remove rtags
authorGraziella Toutoungis <graziella.toutoungis@logilab.fr>
Fri, 15 May 2009 11:46:54 +0200
changeset 28 cc33abbef3da
parent 21 9d11aa451c11
child 29 8bc2fe8410dc
remove rtags
entities.py
--- a/entities.py	Tue May 12 16:02:08 2009 +0200
+++ b/entities.py	Fri May 15 11:46:54 2009 +0200
@@ -9,14 +9,15 @@
 from cubicweb.common.mixins import TreeMixIn
 from cubicweb.entities import AnyEntity, fetch_config
 
+from cubicweb.web import uicfg
+
+uicfg.actionbox_appearsin_addmenu.tag_object_of(('Keyword', 'included_in', 'Classification'), True)
+uicfg.actionbox_appearsin_addmenu.tag_object_of(('Keyword', 'subkeyword_of', 'Keyword'), True)
+uicfg.autoform_section.tag_object_of(('*', 'in_state', 'Keyword'), 'generated')
 
 class Classification(AnyEntity):
     id = 'Classification'
     fetch_attrs, fetch_order = fetch_config(['name'])
-
-    __rtags__ = {
-        ('included_in', 'Keyword', 'object') : 'create',
-        }
     
     def parent(self):
         """overriden from TreeMixIn"""
@@ -31,10 +32,7 @@
     id = 'Keyword'
     fetch_attrs, fetch_order = fetch_config(['name'])
 
-    __rtags__ = {
-        ('subkeyword_of', 'Keyword', 'object') : 'create',
-        'in_state' : 'generated',
-        }
+
     
     tree_attribute = 'subkeyword_of'