Skip to content

Commit

Permalink
Use zope.interface decorator
Browse files Browse the repository at this point in the history
This not only makes code more pleasent to read,
but also makes the code python 3 compatible
(while maintaining python 2 compatibility).
  • Loading branch information
gforcada committed Jul 5, 2016
1 parent 4f2b45a commit 171570a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ New:

Fixes:

- *add item here*
- Use zope.interface decorator.
[gforcada]


3.0.6 (2016-01-08)
Expand Down
5 changes: 2 additions & 3 deletions plone/portlet/collection/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from zExceptions import NotFound
from zope import schema
from zope.component import getUtility
from zope.interface import implements
from zope.interface import implementer
import random

COLLECTIONS = []
Expand Down Expand Up @@ -83,15 +83,14 @@ class ICollectionPortlet(IPortletDataProvider):
default=True)


@implementer(ICollectionPortlet)
class Assignment(base.Assignment):
"""
Portlet assignment.
This is what is actually managed through the portlets UI and associated
with columns.
"""

implements(ICollectionPortlet)

header = u""
limit = None
random = False
Expand Down

0 comments on commit 171570a

Please sign in to comment.