diff options
| author | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2004-04-02 02:54:36 +0000 |
|---|---|---|
| committer | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2004-04-02 02:54:36 +0000 |
| commit | b5ebdc72f8f412847de3fea77576b793372149f0 (patch) | |
| tree | 3a50fc0a92aeaf0a8f86b4ae330709f550bd0486 /docutils/__init__.py | |
| parent | 32853fb8867cad20215e78497db1f39bf24416be (diff) | |
| download | docutils-b5ebdc72f8f412847de3fea77576b793372149f0.tar.gz | |
updated docstring
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1904 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/__init__.py')
| -rw-r--r-- | docutils/__init__.py | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/docutils/__init__.py b/docutils/__init__.py index fe1c4c18e..7921ab022 100644 --- a/docutils/__init__.py +++ b/docutils/__init__.py @@ -124,11 +124,18 @@ class TransformSpec: """Transforms required by this class. Override in subclasses.""" unknown_reference_resolvers = () - """List of functions to try to resolve unknown references. Called when - FinalCheckVisitor is unable to find a correct target. The list should - contain functions which will try to resolve unknown references. Each - function can have a default_priority attribute which will effect the order - the unknown_reference_resolvers are run. Override in subclass""" + """List of functions to try to resolve unknown references. Called when + FinalCheckVisitor is unable to find a correct target. The list should + contain functions which will try to resolve unknown references, with the + following signature:: + + def reference_resolver(node): + '''Returns boolean: true if resolved, false if not.''' + + Each function must have a "priority" attribute which will affect the order + the unknown_reference_resolvers are run. + + Override in subclasses.""" class Component(SettingsSpec, TransformSpec): |
