fix relation order in tag_object_of
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Mon, 18 May 2009 08:25:38 +0200
changeset 25 fb294a8849d9
parent 24 6ec35d406fc1
child 26 38795a236973
fix relation order in tag_object_of The relation is "Keyword included_in Classification", not the other way around
views.py
--- a/views.py	Fri May 15 20:05:30 2009 +0200
+++ b/views.py	Mon May 18 08:25:38 2009 +0200
@@ -20,14 +20,14 @@
 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', 'included_in', 'Classification'), 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):
-    __select__ = implements('Keyword',)
+    __select__ = implements('Keyword')
 
     def cell_call(self, row, col, **kwargs):
         entity = self.entity(row, col)
@@ -41,7 +41,7 @@
 
 
 class KeywordOneLineView(baseviews.InContextView):
-    __select__ = implements('Keyword',)
+    __select__ = implements('Keyword')
 
     def cell_call(self, row, col):
         entity = self.entity(row, col)