Re: [Zope] servlet filter like behaviour

2005-07-16 Thread Chris Withers

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

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] servlet filter like behaviour

2005-07-14 Thread Laurian Gridinoc
Hello,

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).

Thank you,
-- 
Laurian Gridinoc, www.grapefruit.ro
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )