Last change
on this file since 10009 was
7670,
checked in by Henrik Bettermann, 13 years ago
|
Move MessageFactory? definition to w.s.interfaces to avoid conflicting imports.
Start translation of workflow (for demonstration).
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
File size:
445 bytes
|
Rev | Line | |
---|
[4789] | 1 | import grok |
---|
[7321] | 2 | from waeup.sirp.interfaces import ISIRPObject |
---|
[4789] | 3 | from zope.annotation.attribute import AttributeAnnotations |
---|
| 4 | from zope.annotation.interfaces import IAnnotations |
---|
| 5 | |
---|
[7321] | 6 | class SIRPAttributeAnnotations(AttributeAnnotations, grok.Adapter): |
---|
| 7 | """An adapter to IAnnotations for any SIRPObject. |
---|
[4789] | 8 | |
---|
[7321] | 9 | Providing this adapter, each SIRP object becomes (attribute) |
---|
[4789] | 10 | annotatable. |
---|
| 11 | """ |
---|
| 12 | grok.provides(IAnnotations) |
---|
[7321] | 13 | grok.context(ISIRPObject) |
---|
Note: See
TracBrowser for help on using the repository browser.