Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed Oct 2, 2018
1 parent 4f8cd4f commit 157a066
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plone/app/customerize/tests/testDocTests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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
7 changes: 5 additions & 2 deletions plone/app/customerize/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ 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):
""" add the given ttw view template to the container """
self._setObject(id, template)
return getattr(self, id)


InitializeClass(ViewTemplateContainer)

1 comment on commit 157a066

@jenkins-plone-org

This comment was marked as outdated.

Please sign in to comment.