[Checkins] SVN: zope.principalannotation/trunk/ Drop support for Python 2.4 and 2.5.
Tres Seaver
cvs-admin at zope.org
Fri May 18 14:01:16 UTC 2012
Log message for revision 126102:
Drop support for Python 2.4 and 2.5.
Replace deprecated 'zope.interface.implements' usage with equivalent
'zope.interface.implementer' decorator.
Changed:
U zope.principalannotation/trunk/CHANGES.txt
U zope.principalannotation/trunk/setup.py
U zope.principalannotation/trunk/src/zope/principalannotation/utility.py
-=-
Modified: zope.principalannotation/trunk/CHANGES.txt
===================================================================
--- zope.principalannotation/trunk/CHANGES.txt 2012-05-18 13:57:52 UTC (rev 126101)
+++ zope.principalannotation/trunk/CHANGES.txt 2012-05-18 14:01:12 UTC (rev 126102)
@@ -2,11 +2,14 @@
CHANGES
=======
-3.6.2 (unreleased)
+4.0.0 (unreleased)
------------------
-- TBD
+- Replaced deprecated ``zope.interface.implements`` usage with equivalent
+ ``zope.interface.implementer`` decorator.
+- Dropped support for Python 2.4 and 2.5.
+
3.6.1 (2010-05-05)
------------------
Modified: zope.principalannotation/trunk/setup.py
===================================================================
--- zope.principalannotation/trunk/setup.py 2012-05-18 13:57:52 UTC (rev 126101)
+++ zope.principalannotation/trunk/setup.py 2012-05-18 14:01:12 UTC (rev 126102)
@@ -20,7 +20,7 @@
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
setup(name='zope.principalannotation',
- version = '3.6.2dev',
+ version = '4.0.0dev',
author='Zope Foundation and Contributors',
author_email='zope-dev at zope.org',
description='Annotations for Zope Principals',
@@ -36,6 +36,9 @@
'Intended Audience :: Developers',
'License :: OSI Approved :: Zope Public License',
'Programming Language :: Python',
+ 'Programming Language :: Python :: 2',
+ 'Programming Language :: Python :: 2.6',
+ 'Programming Language :: Python :: 2.7',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Internet :: WWW/HTTP',
Modified: zope.principalannotation/trunk/src/zope/principalannotation/utility.py
===================================================================
--- zope.principalannotation/trunk/src/zope/principalannotation/utility.py 2012-05-18 13:57:52 UTC (rev 126101)
+++ zope.principalannotation/trunk/src/zope/principalannotation/utility.py 2012-05-18 14:01:12 UTC (rev 126102)
@@ -28,13 +28,12 @@
# TODO: register utility as adapter for IAnnotations on utility activation.
+ at interface.implementer(IPrincipalAnnotationUtility, IContained)
class PrincipalAnnotationUtility(Persistent):
"""Stores `IAnnotations` for `IPrinicipals`.
The utility ID is 'PrincipalAnnotation'.
"""
-
- interface.implements(IPrincipalAnnotationUtility, IContained)
__parent__ = None
__name__ = None
@@ -66,11 +65,10 @@
return principal.id in self.annotations
+ at interface.implementer(IAnnotations)
class Annotations(Persistent, Location):
"""Stores annotations."""
- interface.implements(IAnnotations)
-
def __init__(self, principalId, store=None):
self.principalId = principalId
self.data = PersistentDict() # We don't really expect that many
More information about the checkins
mailing list