[Zope-dev] absolute_url: why not publishable?
Shane Hathaway
shane@zope.com
Wed, 05 Feb 2003 17:08:35 -0500
Paul Winkler wrote:
> Visit foo/absolute_url and you will find that it
> "has an empty or missing docstring".
> Is this by design, or is it just something that nobody has needed?
> I would like to propose making it callable TTW, unless somebody
> knows a reason it should not be.
I don't know whether absolute_url should be accessible via URL, but
here's a way to get the same thing (almost): add a script at the root of
your site called "AbsoluteURL", with the body "return
context.absolute_url()". Then just use
"http://example.com/foo/bar/AbsoluteURL" instead of
"http://example.com/foo/bar/absolute_url".
Shane