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