[Zope] Imitating SiteRoot in an accessrule

Ivo van der Wijk ivo@amaze.nl
Tue, 15 Jan 2002 16:35:54 +0100


Hi All,

Is it possible to imitate the behaviour of a SiteRoot object in an
access_rule? 

The basic idea is like this: Alot of virtual hosts point to our Zope server,
and an access_rule in the / of the Zope server dispatches request to the
appropriate subfolder.

This works perfectly, except that base href in generated documents is wrong,
it includes the entire path, while I would like it to skip the part up to
the actual root of the site.

This can be solved by installing a default SiteRoot in the subfolders, but
I would rather not depend on all these SiteRoots (which people will modify,
delete, etc, also the make managing these folders difficult)

Is it possible to adjust the SiteRoot/SiteBASE/?? directly in my accessrule?

With regards,

	Ivo

-- 
Drs. I.R. van der Wijk                              -=-
Brouwersgracht 132                      Amaze Internet Services V.O.F.
1013 HA Amsterdam, NL                               -=-
Tel: +31-20-4688336                       Linux/Web/Zope/SQL/MMBase
Fax: +31-20-4688337                           Network Solutions
Web:     http://www.amaze.nl/                    Consultancy
Email:   ivo@amaze.nl                               -=-