Added protected form object as base class for menu divider
authorThierry Florac <thierry.florac@onf.fr>
Tue, 12 Sep 2017 11:22:42 +0200
changeset 145 a3e3347f33b5
parent 144 b0203f9816a6
child 146 221775601fe7
Added protected form object as base class for menu divider
src/pyams_content/component/extfile/zmi/__init__.py
--- a/src/pyams_content/component/extfile/zmi/__init__.py	Tue Sep 12 11:17:48 2017 +0200
+++ b/src/pyams_content/component/extfile/zmi/__init__.py	Tue Sep 12 11:22:42 2017 +0200
@@ -56,7 +56,7 @@
 
 @viewlet_config(name='add-extfile.divider', context=IExtFileContainerTarget, view=IAssociationsView,
                 layer=IPyAMSLayer, manager=IToolbarAddingMenu, weight=59)
-class ExtFileAddMenuDivider(ToolbarMenuDivider):
+class ExtFileAddMenuDivider(ProtectedFormObjectMixin, ToolbarMenuDivider):
     """External file add menu divider"""