diff --git a/plone/app/customerize/tests/testDocTests.py b/plone/app/customerize/tests/testDocTests.py index 98563ae..3e18c65 100644 --- a/plone/app/customerize/tests/testDocTests.py +++ b/plone/app/customerize/tests/testDocTests.py @@ -20,7 +20,7 @@ def check_output(self, want, got, optionflags): def test_suite(): suite = TestSuite() - OPTIONFLAGS = (doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE) + OPTIONFLAGS = doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE for testfile in ('testBrowserLayers.txt', 'testCustomizeView.txt'): suite.addTest( layered( @@ -30,7 +30,7 @@ def test_suite(): package='plone.app.customerize.tests', checker=Py23DocChecker(), ), - layer=PLONE_APP_CUSTOMERIZE_FUNCTIONAL_TESTING + layer=PLONE_APP_CUSTOMERIZE_FUNCTIONAL_TESTING, ) ) return suite diff --git a/plone/app/customerize/tool.py b/plone/app/customerize/tool.py index 3c8a7ba..dbeb642 100644 --- a/plone/app/customerize/tool.py +++ b/plone/app/customerize/tool.py @@ -19,8 +19,10 @@ class ViewTemplateContainer(Folder): security = ClassSecurityInfo() manage_options = ( - dict(label='Registrations', action='registrations.html'), - ) + Folder.manage_options[0:1] + Folder.manage_options[2:] + (dict(label='Registrations', action='registrations.html'),) + + Folder.manage_options[0:1] + + Folder.manage_options[2:] + ) @security.protected(ManagePortal) def addTemplate(self, id, template): @@ -28,4 +30,5 @@ def addTemplate(self, id, template): self._setObject(id, template) return getattr(self, id) + InitializeClass(ViewTemplateContainer)