Updated themes manager edit forms
authorThierry Florac <thierry.florac@onf.fr>
Wed, 11 Jul 2018 13:36:12 +0200
changeset 830 ea722c2352b7
parent 829 f933926ed0a1
child 831 4202a94629c6
Updated themes manager edit forms
src/pyams_content/component/theme/zmi/manager.py
--- a/src/pyams_content/component/theme/zmi/manager.py	Wed Jul 11 10:18:10 2018 +0200
+++ b/src/pyams_content/component/theme/zmi/manager.py	Wed Jul 11 13:36:12 2018 +0200
@@ -67,6 +67,9 @@
     fields = field.Fields(ITagsManager)
     edit_permission = MANAGE_SITE_ROOT_PERMISSION
 
+    def getContent(self):
+        return ITagsManager(self.context)
+
     def updateWidgets(self, prefix=None):
         super(TagsManagerEditForm, self).updateWidgets(prefix)
         widget = self.widgets['thesaurus_name']
@@ -114,6 +117,9 @@
     fields = field.Fields(IThemesManager)
     edit_permission = MANAGE_TOOL_PERMISSION
 
+    def getContent(self):
+        return IThemesManager(self.context)
+
     def updateWidgets(self, prefix=None):
         super(ThemesManagerEditForm, self).updateWidgets(prefix)
         widget = self.widgets['thesaurus_name']
@@ -161,6 +167,9 @@
     fields = field.Fields(ICollectionsManager)
     edit_permission = MANAGE_TOOL_PERMISSION
 
+    def getContent(self):
+        return ICollectionsManager(self.context)
+
     def updateWidgets(self, prefix=None):
         super(CollectionsManagerEditForm, self).updateWidgets(prefix)
         widget = self.widgets['thesaurus_name']