[Zope] servlet filter like behaviour
Chris Withers
chris at simplistix.co.uk
Fri Jul 15 15:35:07 EDT 2005
Laurian Gridinoc wrote:
>
> How it is possible to wrap the response of a subtree?
> For example, for the path /foo/bar/baz, a script located at
> /foo/wrapper would catch the output of the rest of the request path
> (./bar/baz) and do a transformation upon it (gzip, xslt, etc).
Well, if you make 'foo' a python script or page template, /bar/baz will
be available in the traverse_subpath variable and you can do whatever
you want with them :-)
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope
mailing list