[Zope-CMF] portal_url() question, relative URL's, Squid

alan runyan alan runyan" <runyaga@runyaga.com
Tue, 14 May 2002 12:55:58 -0500


look at portal_url, or CMFDefault.URLTool

I believe it has what you are looking for

~runyaga

----- Original Message -----
From: <Jean-Francois.Doyon@CCRS.NRCan.gc.ca>
To: <zope-cmf@zope.org>
Sent: Tuesday, May 14, 2002 12:40 PM
Subject: [Zope-CMF] portal_url() question, relative URL's, Squid


> Hello,
>
> I have my Zope site rooted under a subdirectory, using Apache and FastC=
GI.
> And have 2 CMF sites bellow that, such as:
>
> http://mydomain.com/site   <- The Zope root
> http://mydomain.com/site/english <- a CMF Site
> http://mydomain.com/site/francais <- another CMF Site
>
> I'm trying to find a method/function that will return either
"/site/english"
> or "/site/francais" ... But it looks like there isn't one ?
>
> I've hacked my own for now, but this might be a good and simple additio=
n
for
> the next CMF :) I Like to use these when building links in order to hel=
p
> browers properly cache certain things (Since with acquisition a given
image
> can be called through many URL's, which means the client would cache ma=
ny
> times the same thing).
>
> I was using absolute_url and things of the sort, but now I'm putting sq=
uid
> in place and can't have ANY absolute URL's in there at all.
>
> Any insight into this problem and any possible solutions would be welco=
me
!
>
> Thanks,
>
> Jean-Fran=E7ois Doyon
> Internet Service Development and Systems Support
> GeoAccess Division
> Canadian Center for Remote Sensing
> Natural Resources Canada
> http://atlas.gc.ca
> Phone: (613) 992-4902
> Fax: (613) 947-2410
>
>
>
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and featur=
e
requests
>