[Zope] Python script upon authentication

Dylan Reinhardt Dylan@DylanReinhardt.com
Sun, 20 Oct 2002 14:58:55 -0700


The simplest approach is to make your users log in at a particular page and 
add a call to any housekeeping scripts there.  Might work for smaller sites 
or sites with https.

A more complicated approach would be to include a trigger in your standard 
header that can establish whether someone is newly authenticated and will 
call your housekeeping code if it detects a new login.  This is probably a 
more robust approach, as it will accommodate deep linking.

Another approach, of course, is to do housecleaning independently of user 
visits.  Deft usage of tools like cron and wget will allow you to schedule 
regular events for your server.

HTH,

Dylan

At 05:32 PM 10/20/2002 -0400, you wrote:
>I would like be able to run a python script upon authentication (
>basically whenever the user has to supply a user name and password) to
>do some logging and housekeeping chores -- is this possible?
>
>Any clues where to look for strategies/code?
>
>
>
>_______________________________________________
>Zope maillist  -  Zope@zope.org
>http://lists.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )