[Zope] Question about SiteRoot and absolute_url()
Jérôme Loisel
jerome@levinux.org
Tue, 24 Apr 2001 15:04:05 -0400
Hi there!
Assume you have a portal site structure with many SiteRoot objects. The
websites are distinct but inter-related. For example:
zope.mydomain.org (portal admin) -> /zope, contains SiteRoot
zope.mydomain.org/stats (portal info for admins) -> /zope/stats, no SiteRoot
www.mydomain.org (main portal) -> /zope/www, contains SiteRoot
mail.mydomain.org (e-mail service) -> /zope/mail, contains SiteRoot
These sites need to link to each other, but absolute_url gets screwy when
combined with SiteRoot objects. My hackish solution so far: look for a
SiteRoot. If it exists, use base. If not, go up and look for one. If there is
one, combine base with path info. Then look at the code and shiver.
So my question is... Is there a clean way of getting absolute_url() as it
would look from within that object? Any specific PythonScript code example?
--
Jérôme Loisel, étudiant et webmestre
Lévinux: GNU/Linux pour la communauté
http://www.levinux.org/