[Zope] Script execute with every request

Tino Wildenhain tino at wildenhain.de
Mon Jul 24 03:55:23 EDT 2006


Joshua Burvill wrote:
> Hi,
> 
>  
> 
> I’d like to log certain parts of each request into a database table for 
> every request to provide an audit trail.
> 
>  
> 
> I thought of inserting a <dtml-call  xxx> into the standard_html_header, 
> but when there is a RESPONSE.redirect, it will not be the original 
> request that gets logged.
> 
Well that would mean 2 log entries - one from the redirecting
page and one from the target of the redirect.

Btw, its usually not the best idea if you can avoid it -
what about using the apache log facilities here?


> 
> Can anyone offer any suggestions?
> 
>  
> 
> Thanks, Josh
> 
> 
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.10.1/391 - Release Date: 18/07/2006

^^^^ Ah, wasting cpu cycles for nothing :-)


Regards
Tino


More information about the Zope mailing list