[Checkins] SVN: z3c.batching/trunk/src/z3c/batching/batch.py Change implements advice to implementer decorators.
Albertas Agejevas
cvs-admin at zope.org
Mon Feb 25 11:58:14 UTC 2013
Log message for revision 129779:
Change implements advice to implementer decorators.
Changed:
U z3c.batching/trunk/src/z3c/batching/batch.py
-=-
Modified: z3c.batching/trunk/src/z3c/batching/batch.py
===================================================================
--- z3c.batching/trunk/src/z3c/batching/batch.py 2013-02-25 11:54:48 UTC (rev 129778)
+++ z3c.batching/trunk/src/z3c/batching/batch.py 2013-02-25 11:58:14 UTC (rev 129779)
@@ -23,10 +23,9 @@
from z3c.batching import interfaces
-
+ at zope.interface.implementer(interfaces.IBatch)
class Batch(object):
"""Batch implementation. See IBatch"""
- zope.interface.implements(interfaces.IBatch)
start = FieldProperty(interfaces.IBatch['start'])
size = FieldProperty(interfaces.IBatch['size'])
@@ -149,11 +148,11 @@
self.__class__.__name__, self.start, self.size)
+ at zope.interface.implementer(IFiniteSequence)
class Batches(object):
"""A sequence object representing all the batches.
Used by a Batch.
"""
- zope.interface.implements(IFiniteSequence)
def __init__(self, batch):
self.size = batch.size
More information about the checkins
mailing list