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

Last change on this file since 7633 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
RevLine 
[4789]1import grok
[7346]2import zope.i18nmessageid
[7321]3from waeup.sirp.interfaces import ISIRPObject
[4789]4from zope.annotation.attribute import AttributeAnnotations
5from zope.annotation.interfaces import IAnnotations
6
[7346]7MessageFactory = zope.i18nmessageid.MessageFactory('waeup.sirp')
8
[7321]9class SIRPAttributeAnnotations(AttributeAnnotations, grok.Adapter):
10    """An adapter to IAnnotations for any SIRPObject.
[4789]11
[7321]12    Providing this adapter, each SIRP object becomes (attribute)
[4789]13    annotatable.
14    """
15    grok.provides(IAnnotations)
[7321]16    grok.context(ISIRPObject)
Note: See TracBrowser for help on using the repository browser.