[Zope] URL of the root folder of my site
mindlace
mindlace@imeme.net
Fri, 31 Mar 2000 06:02:37 -0700
Cédric Wuidard wrote:
> Starting in zope, I am confronted to a problem. I would like to get the url
> of the root of my site in order to place it in a property.
> Base0 return http://localhost:8080, I would like to have
> http://localhost:8080/mysite.
> How to get this address and how to initialize this one to a property ?
If you really want all content served out of mysite, you might want to
look into the SiteAccess product.
If you want just http://localhost:8080/mysite, try BASE1.
BASEn starts from the root and adds an object (from the current
aquisition path) according to n- BASE0 = root, BASE5 = root + 5 objects.
BASE == BASE0
URLn counts the other way, starting with the current aquisition path and
removing an object according to n- URL0 = current path, URL1 current
path - 1 object.
URL == URL0
The Zope Quick Reference has this information.
Ethan Fremen
--
http://mindlace.net __________________ mindlace@imeme.net
I don't want The Truth but I wouldn't mind a Big Analogy.