Skip to content

Commit

Permalink
replace implements with implementer
Browse files Browse the repository at this point in the history
  • Loading branch information
pbauer committed Mar 15, 2018
1 parent 8df4fa9 commit d1fad97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/five/customerize/zpt.py
Expand Up @@ -3,17 +3,17 @@
from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate
from zope.lifecycleevent.interfaces import IObjectRemovedEvent
from zope.viewlet.interfaces import IViewlet, IViewletManager
from zope.interface import implements
from zope.interface import implementer

from five.customerize.interfaces import ITTWViewTemplate
from five.customerize.utils import checkPermission
from plone.portlets.interfaces import IPortletRenderer
from plone.portlets.interfaces import IPortletManager


@implementer(ITTWViewTemplate)
class TTWViewTemplate(ZopePageTemplate):
"""A template class used to generate Zope 3 views TTW"""
implements(ITTWViewTemplate)

manage_options = (
ZopePageTemplate.manage_options[0],
Expand Down Expand Up @@ -115,9 +115,9 @@ def __parent__(self):
return self.context


@implementer(IViewlet)
class TTWViewletRenderer(object):
""" analogon to TTWViewTemplateRenderer for viewlets """
implements(IViewlet)

__allow_access_to_unprotected_subobjects__ = True

Expand Down Expand Up @@ -175,9 +175,9 @@ def __of__(self, obj):
return self


@implementer(IPortletRenderer)
class TTWPortletRenderer(object):
""" analogon to TTWViewletRenderer for portlets """
implements(IPortletRenderer)

__allow_access_to_unprotected_subobjects__ = True

Expand Down

0 comments on commit d1fad97

Please sign in to comment.