[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/annotation/attribute.py
Updated declarations to new style.
Jim Fulton
jim at zope.com
Mon May 23 13:27:56 EDT 2005
Log message for revision 30482:
Updated declarations to new style.
Changed:
U Zope3/trunk/src/zope/app/annotation/attribute.py
-=-
Modified: Zope3/trunk/src/zope/app/annotation/attribute.py
===================================================================
--- Zope3/trunk/src/zope/app/annotation/attribute.py 2005-05-23 09:51:29 UTC (rev 30481)
+++ Zope3/trunk/src/zope/app/annotation/attribute.py 2005-05-23 17:27:46 UTC (rev 30482)
@@ -19,16 +19,19 @@
from UserDict import DictMixin
from BTrees.OOBTree import OOBTree
-from zope.interface import implements
-from interfaces import IAnnotations, IAttributeAnnotatable
+from zope import component, interface
+from zope.app.annotation import interfaces
+
class AttributeAnnotations(DictMixin):
- """Store annotations in the `__annotations__` attribute on a
- `IAttributeAnnotatable` object.
+ """Store annotations on an object
+
+ Store annotations in the `__annotations__` attribute on a
+ `IAttributeAnnotatable` object.
"""
- implements(IAnnotations)
- __used_for__ = IAttributeAnnotatable
+ interface.implements(interfaces.IAnnotations)
+ component.adapts(interfaces.IAttributeAnnotatable)
def __init__(self, obj):
self.obj = obj
More information about the Zope3-Checkins
mailing list