Last change
on this file since 10009 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 | |
---|
1 | import grok |
---|
2 | import zope.i18nmessageid |
---|
3 | from waeup.sirp.interfaces import ISIRPObject |
---|
4 | from zope.annotation.attribute import AttributeAnnotations |
---|
5 | from zope.annotation.interfaces import IAnnotations |
---|
6 | |
---|
7 | MessageFactory = zope.i18nmessageid.MessageFactory('waeup.sirp') |
---|
8 | |
---|
9 | class 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.