source: main/waeup.sirp/trunk/src/waeup/sirp/__init__.py @ 7592

Last change on this file since 7592 was 7346, checked in by uli, 13 years ago

Add a message factory for waeup.sirp.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 537 bytes
Line 
1import grok
2import zope.i18nmessageid
3from waeup.sirp.interfaces import ISIRPObject
4from zope.annotation.attribute import AttributeAnnotations
5from zope.annotation.interfaces import IAnnotations
6
7MessageFactory = zope.i18nmessageid.MessageFactory('waeup.sirp')
8
9class SIRPAttributeAnnotations(AttributeAnnotations, grok.Adapter):
10    """An adapter to IAnnotations for any SIRPObject.
11
12    Providing this adapter, each SIRP object becomes (attribute)
13    annotatable.
14    """
15    grok.provides(IAnnotations)
16    grok.context(ISIRPObject)
Note: See TracBrowser for help on using the repository browser.