[prev in list] [next in list] [prev in thread] [next in thread]
List: zope-dev
Subject: Re: [Zope-dev] absolute_url(1) doesn't start with a /
From: cs () comlounge ! net (Christian Scholz)
Date: 2001-07-31 20:31:39
[Download RAW message or body]
Hi!
On Tue, Jul 31, 2001 at 12:12:37PM -0700, Michael R. Bernstein wrote:
> On 31 Jul 2001 19:09:57 +0100, Steve Alexander wrote:
> > absolute_url(1) is supposed to give you the "physical path relative to a
> > VirtualRoot".
> >
> > However, the returned value doesn't start with a "/", so it is not
> > really a useful relative path.
> >
> > Is this a bug, or was it designed that way?
> >
> > (I suspect the answer might be "yes" and "yes" from my point of view :) )
> >
> > Reference: /lib/python/OFS/Traversable.py
>
> But that *is* a relative path. Paths beginning with a "/" are
> "site-relative" paths.
>
> Arguably, absolute_url should be returning the site-relative path,
> though.
Actually for what I know they usually make problems with virtual sites
(the normal absolute_url(1) that is). At least in ZWiki or WikiForNow
I have replaced the occurrence of absolute_url(relative=1) in wiki_base_url()
by an absolute on in order to make the edit forms etc. work again
(while using virtual site root, dunno what happens with a SiteRoot
but I guess something similar). So dunno if some change to absolute_url(1)
might help here though on the other hand it might break things if it's
behaviour is simply changed..
cheers,
Christian
--
COM.lounge http://comlounge.net/
communication & design info@comlounge.net
_______________________________________________
Zope-Dev maillist - Zope-Dev@zope.org
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic