diff options
author | Jason Madden <jamadden@gmail.com> | 2017-11-08 11:51:03 -0600 |
---|---|---|
committer | Jason Madden <jamadden@gmail.com> | 2017-11-08 11:51:03 -0600 |
commit | fbc54516fcdaa1b516606e6ac2c6b569bd25ed94 (patch) | |
tree | 7192b316e31a25f7e0b6ddde522a79087fc7868e /src/zope/traversing/browser/interfaces.py | |
parent | 7e3ebd8032aaa081637bc2c378416da607960584 (diff) | |
download | zope-traversing-rtd-docs.tar.gz |
Publish docs using Sphinx.rtd-docs
Some doc formatting fixes and cleanups. Add quite a bit of docs about namespaces and the various ones we supply.
Fixes #5
Diffstat (limited to 'src/zope/traversing/browser/interfaces.py')
-rw-r--r-- | src/zope/traversing/browser/interfaces.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/zope/traversing/browser/interfaces.py b/src/zope/traversing/browser/interfaces.py index 0ef4f62..df468ce 100644 --- a/src/zope/traversing/browser/interfaces.py +++ b/src/zope/traversing/browser/interfaces.py @@ -17,6 +17,12 @@ from zope.interface import Interface class IAbsoluteURL(Interface): + """ + An absolute URL. + + These are typically registered as adapters or multi-adapters + for objects. + """ def __unicode__(): """Returns the URL as a unicode string.""" @@ -39,6 +45,16 @@ class IAbsoluteURL(Interface): class IAbsoluteURLAPI(Interface): + """ + The api to compute absolute URLs of objects. + + Provided by :mod:`zope.traversing.browser.absoluteurl` + """ def absoluteURL(ob, request): - """Compute the absolute URL of an object """ + """ + Compute the absolute URL of an object. + + This should return an ASCII string by looking up an adapter + from `(ob, request)` to :class:`IAbsoluteURL` and then calling it. + """ |