Hello, 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 ? Thank you for your help. -- Cédric Wuidard ATON Belgium cwuidard@belgium.aton.net Avenue Reine Astrid, 7 cedric.wuidard@excite.com B-1440 Wauthier-Braine ICQ : 1063519 Belgium Tel : +32 2 366 25 08 Fax : +32 2 366 25 14
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.
participants (2)
-
Cédric Wuidard -
mindlace