Changeset 4309 for waeup/branches


Ignore:
Timestamp:
18 Jun 2009, 11:24:03 (15 years ago)
Author:
uli
Message:

Make WAeUP objects attribute annotatable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/__init__.py

    r3521 r4309  
     1import grok
     2from waeup.interfaces import IWAeUPObject
     3from zope.annotation.attribute import AttributeAnnotations
     4from zope.annotation.interfaces import IAnnotations
     5
     6class 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)
Note: See TracChangeset for help on using the changeset viewer.