update to cw 3.2 and turn __rtags__ into uicfg
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Fri, 15 May 2009 16:57:44 +0200
changeset 22 1e908fb139bd
parent 21 9d11aa451c11
child 24 6ec35d406fc1
update to cw 3.2 and turn __rtags__ into uicfg
entities.py
views.py
--- a/entities.py	Tue May 12 16:02:08 2009 +0200
+++ b/entities.py	Fri May 15 16:57:44 2009 +0200
@@ -14,10 +14,6 @@
     id = 'Classification'
     fetch_attrs, fetch_order = fetch_config(['name'])
 
-    __rtags__ = {
-        ('included_in', 'Keyword', 'object') : 'create',
-        }
-    
     def parent(self):
         """overriden from TreeMixIn"""
         return None
@@ -31,11 +27,6 @@
     id = 'Keyword'
     fetch_attrs, fetch_order = fetch_config(['name'])
 
-    __rtags__ = {
-        ('subkeyword_of', 'Keyword', 'object') : 'create',
-        'in_state' : 'generated',
-        }
-    
     tree_attribute = 'subkeyword_of'
     
     @property
--- a/views.py	Tue May 12 16:02:08 2009 +0200
+++ b/views.py	Fri May 15 16:57:44 2009 +0200
@@ -20,6 +20,10 @@
 uicfg.primaryview_section.tag_object_of(('*', 'applied_to', '*'), 'hidden')
 uicfg.primaryview_section.tag_subject_of(('*', 'applied_to', '*'), 'hidden')
 
+uicfg.actionbox_appearsin_addmenu.tag_object_of(('Classification', 'included_in', 'Keyword'), True)
+uicfg.actionbox_appearsin_addmenu.tag_object_of(('Keyword', 'subkeyword_of', 'Keyword'), True)
+uicfg.autoform_section.tag_object_of(('Keyword', 'in_state', '*'), 'generated')
+
 # keyword views ###############################################################
 
 class KeywordPrimaryView(baseviews.PrimaryView):