Changeset 6883
- Timestamp:
- 13 Oct 2011, 07:53:16 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.custom/trunk/src/waeup/custom/__init__.py
r4920 r6883 1 import grok 2 from waeup.sirp.interfaces import IWAeUPObject 3 from zope.annotation.attribute import AttributeAnnotations 4 from zope.annotation.interfaces import IAnnotations 5 6 class WAeUPAttributeAnnotations(AttributeAnnotations, grok.Adapter): 7 """An adapter to IAnnotations for any WAeUPObject. 8 9 Providing this adapter, each WAeUP object becomes (attribute) 10 annotatable. 11 """ 12 grok.provides(IAnnotations) 13 grok.context(IWAeUPObject) 1 # Make this a package.
Note: See TracChangeset for help on using the changeset viewer.