Last change
on this file since 9593 was
7819,
checked in by Henrik Bettermann, 13 years ago
|
KOFA -> Kofa
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
File size:
445 bytes
|
Rev | Line | |
---|
[4789] | 1 | import grok |
---|
[7819] | 2 | from waeup.kofa.interfaces import IKofaObject |
---|
[4789] | 3 | from zope.annotation.attribute import AttributeAnnotations |
---|
| 4 | from zope.annotation.interfaces import IAnnotations |
---|
| 5 | |
---|
[7819] | 6 | class KofaAttributeAnnotations(AttributeAnnotations, grok.Adapter): |
---|
| 7 | """An adapter to IAnnotations for any KofaObject. |
---|
[4789] | 8 | |
---|
[7819] | 9 | Providing this adapter, each Kofa object becomes (attribute) |
---|
[4789] | 10 | annotatable. |
---|
| 11 | """ |
---|
| 12 | grok.provides(IAnnotations) |
---|
[7819] | 13 | grok.context(IKofaObject) |
---|
Note: See
TracBrowser for help on using the repository browser.