Products.CMFPlone/plip-1486-redirection: Use zope.interface decorator
Stephan Klinger <jenkins-z4DKO/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Repository: Products.CMFPlone Branch: refs/heads/plip-1486-redirection Date: 2017-07-10T09:31:40+03:00 Author: Stephan Klinger (staeff) <[email protected]> Commit: https://github.com/plone/Products.CMFPlone/commit/c0628b128c387747670ee7c0b6741f068328d2ec Use zope.interface decorator Files changed: M Products/CMFPlone/controlpanel/browser/redirects.py diff --git a/Products/CMFPlone/controlpanel/browser/redirects.py b/Products/CMFPlone/controlpanel/browser/redirects.py index ecfdf7893..20704bdc1 100644 --- a/Products/CMFPlone/controlpanel/browser/redirects.py +++ b/Products/CMFPlone/controlpanel/browser/redirects.py @@ -1,7 +1,8 @@ import csv from cStringIO import StringIO -from zope.interface import implements, Interface +from zope.interface import implementer +from zope.interface import Interface from zope.component import adapts, getUtility from zope.schema import Choice, Tuple @@ -135,10 +136,10 @@ class IAliasesSchema(Interface): vocabulary="plone.app.vocabularies.ReallyUserFriendlyTypes")) +@implementer(IAliasesSchema) class RedirectsControlPanelAdapter(object): adapts(IPloneSiteRoot) - implements(IAliasesSchema) def __init__(self, context): self.context = context ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot