merge
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 15 May 2009 20:05:30 +0200
changeset 24 6ec35d406fc1
parent 23 3ed55003b676 (current diff)
parent 22 1e908fb139bd (diff)
child 25 fb294a8849d9
child 29 8bc2fe8410dc
merge
--- a/entities.py	Fri May 15 20:05:09 2009 +0200
+++ b/entities.py	Fri May 15 20:05:30 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	Fri May 15 20:05:09 2009 +0200
+++ b/views.py	Fri May 15 20:05:30 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):