Added weight to thesaurus extensions
authorThierry Florac <thierry.florac@onf.fr>
Tue, 27 Nov 2018 17:21:47 +0100
changeset 1133 52a1a1db5ec5
parent 1132 f1276d7bc4ce
child 1134 35e8b9cd9070
Added weight to thesaurus extensions
src/pyams_content/component/illustration/thesaurus.py
src/pyams_content/features/thesaurus/__init__.py
--- a/src/pyams_content/component/illustration/thesaurus.py	Tue Nov 27 17:11:57 2018 +0100
+++ b/src/pyams_content/component/illustration/thesaurus.py	Tue Nov 27 17:21:47 2018 +0100
@@ -30,6 +30,7 @@
     """Illustration thesaurus extension"""
 
     label = _("Illustration")
+    weight = 20
 
     target_interface = IBasicIllustrationTarget
     target_view = 'illustration-dialog.html'
--- a/src/pyams_content/features/thesaurus/__init__.py	Tue Nov 27 17:11:57 2018 +0100
+++ b/src/pyams_content/features/thesaurus/__init__.py	Tue Nov 27 17:21:47 2018 +0100
@@ -46,6 +46,7 @@
     """HTML description thesaurus extension"""
 
     label = _("Rich text description")
+    weight = 10
 
     target_interface = IThesaurusTermHTMLTarget
     target_view = 'html-description.html'