[Zope3-dev] Re: Apache rewrite rules and URLs: an experiment

Peter Mayne PeterMayne at ap.spherion.com
Tue Nov 2 17:55:39 EST 2004


Jim Fulton wrote:
> Peter Mayne wrote:
>> What if the path doesn't involve a resource, such as a link to the 
>> home page or a site map page?
> 
> If you always want to link to a page of the site, then get the current site
> and construct a url relative to the site's url. Perhaps we'll want
> apis to make this easier. <shrug/>  For now, on the trunk, you can
> use zope.app.zapi.getSite() to get the site. (On the branch, you hace
> to use zope.app.component.hooks.getSite().)

Sorry, you've lost me. I'm using zope.app.component.hooks.getSite() 
(rc3), which returns the root Folder whether I go direct to Zope or via 
Apache. In fact, it's the same Folder object. Where am I supposed to go 
from here?

PJDM
-- 
Peter Mayne
Spherion Technology Solutions
Canberra, ACT, Australia
"I'm after rebellion, I'll settle for lies" - Blue Oyster Cult



More information about the Zope3-dev mailing list