diff -r 48c1ee485dc0 -r 9b93fdd5ba30 src/pyams_content/shared/site/zmi/folder.py --- a/src/pyams_content/shared/site/zmi/folder.py Fri Nov 13 13:11:29 2020 +0100 +++ b/src/pyams_content/shared/site/zmi/folder.py Fri Nov 13 13:13:48 2020 +0100 @@ -10,8 +10,6 @@ # FOR A PARTICULAR PURPOSE. # -__docformat__ = 'restructuredtext' - from pyramid.events import subscriber from pyramid.path import DottedNameResolver from z3c.form import field @@ -27,6 +25,7 @@ from pyams_content.shared.common.zmi.manager import SharedToolPropertiesEditForm from pyams_content.shared.site.interfaces import ISiteContainer, ISiteFolder, ISiteManager from pyams_content.shared.site.zmi.widget import SiteManagerFoldersSelectorFieldWidget +from pyams_content.zmi.interfaces import ISiteTreeTable from pyams_form.form import AJAXAddForm, ajax_config from pyams_form.group import NamedWidgetsGroup from pyams_form.interfaces.form import IInnerSubForm @@ -48,11 +47,15 @@ from pyams_zmi.interfaces.menu import ISiteManagementMenu from pyams_zmi.layer import IAdminLayer + +__docformat__ = 'restructuredtext' + from pyams_content import _ -@viewlet_config(name='add-site-folder.menu', context=ISiteContainer, layer=IAdminLayer, view=Interface, - manager=IToolbarAddingMenu, permission=MANAGE_SITE_PERMISSION, weight=10) +@viewlet_config(name='add-site-folder.menu', context=ISiteContainer, layer=IAdminLayer, + view=ISiteTreeTable, manager=IToolbarAddingMenu, + permission=MANAGE_SITE_PERMISSION, weight=10) class SiteFolderAddMenu(ToolbarMenuItem): """Site folder add menu"""