-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,30 @@ | ||
:mod:`zope.annotation` API Documentation | ||
======================================== | ||
:mod:`zope.annotation` API | ||
========================== | ||
|
||
|
||
Interfaces | ||
---------- | ||
Framework Interfaces | ||
-------------------- | ||
|
||
These interfaces define the source and targets for adaptation under the | ||
:mod:`zope.annotation` framework: | ||
|
||
.. automodule:: zope.annotation.interfaces | ||
|
||
.. autointerface:: IAnnotatable | ||
|
||
.. autointerface:: IAnnotations | ||
|
||
|
||
Attribute-Based Annotations | ||
--------------------------- | ||
|
||
The default adapter implementation uses a special attribute, | ||
``__annotations__``, on the annotated object: | ||
|
||
.. autoclass:: zope.annotation.attribute.AttributeAnnotations | ||
|
||
Because setting an attribute is somewhat intrusive (as opposed to storing | ||
annotations elsewhere), this adapter requires that its context implment | ||
``IAttributeAnnotatable`` to signal that this attribute can be used. | ||
|
||
.. autointerface:: zope.annotation.interfaces.IAttributeAnnotatable |