[Zope] Pre & post processing

Andrew Athan zope-response@memeplex.com
Sat, 8 Feb 2003 15:15:29 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C2CF84.ED7B51F0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

I'm wondering what the "best" way to pre and/or post process all
requests to either the entire Zope server or (better) a particular
sub-tree of the content.
 
I want to be able to verify that the request contains particular
headers, that the session object is set-up with certain defaults, etc.
etc.  I'd like to be able to redirect the request if it doesn't meet
certain requirements (at minimum, by raising an exception which ends up
rendering standard_error_message).
 
Suggestions?
RTFM responses welcomed (as long as they specify what to read).
 
Thanks,
A.
 

------=_NextPart_000_0001_01C2CF84.ED7B51F0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D781510119-08022003><FONT face=3DArial size=3D2>I'm =
wondering what=20
the "best" way to pre and/or post process all requests to either the =
entire Zope=20
server or (better) a particular sub-tree of the =
content.</FONT></SPAN></DIV>
<DIV><SPAN class=3D781510119-08022003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D781510119-08022003><FONT face=3DArial size=3D2>I want =
to be able to=20
verify that the request contains particular headers, that the session =
object is=20
set-up with certain defaults, etc. etc.&nbsp; I'd like to be able to =
redirect=20
the request if it doesn't meet certain requirements (at minimum, by =
raising an=20
exception which ends up rendering =
standard_error_message).</FONT></SPAN></DIV>
<DIV><SPAN class=3D781510119-08022003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D781510119-08022003><FONT face=3DArial=20
size=3D2>Suggestions?</FONT></SPAN></DIV>
<DIV><SPAN class=3D781510119-08022003><FONT face=3DArial size=3D2>RTFM =
responses=20
welcomed (as long as they specify what to read).</FONT></SPAN></DIV>
<DIV><SPAN class=3D781510119-08022003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D781510119-08022003><FONT face=3DArial=20
size=3D2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=3D781510119-08022003><FONT face=3DArial=20
size=3D2>A.</FONT></SPAN></DIV>
<DIV><SPAN class=3D781510119-08022003></SPAN>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0001_01C2CF84.ED7B51F0--