Changeset 7321 for main/waeup.sirp/trunk/src/waeup/sirp/__init__.py
- Timestamp:
- 10 Dec 2011, 06:15:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/__init__.py
r7137 r7321 1 1 import grok 2 from waeup.sirp.interfaces import I WAeUPObject2 from waeup.sirp.interfaces import ISIRPObject 3 3 from zope.annotation.attribute import AttributeAnnotations 4 4 from zope.annotation.interfaces import IAnnotations 5 5 6 class WAeUPAttributeAnnotations(AttributeAnnotations, grok.Adapter):7 """An adapter to IAnnotations for any WAeUPObject.6 class SIRPAttributeAnnotations(AttributeAnnotations, grok.Adapter): 7 """An adapter to IAnnotations for any SIRPObject. 8 8 9 Providing this adapter, each WAeUP object becomes (attribute)9 Providing this adapter, each SIRP object becomes (attribute) 10 10 annotatable. 11 11 """ 12 12 grok.provides(IAnnotations) 13 grok.context(I WAeUPObject)13 grok.context(ISIRPObject)
Note: See TracChangeset for help on using the changeset viewer.