I was not able to make this work using the *.cfg files.  Instead I
modified the *-start.py file that was created by turbo gears.

First I created a session manager module, with two functions:

def session_added(data):
    ...

def session_deleted(data)
    ...

IIRC, the parameter passed is the actual session dictionary.  Anyway,
after creating the module and necessary functions to call, I added this
to *-start.py:

update_map = {'global' :
               {'sessionFilter.onCreateSession' :
session.session_added,
                'sessionFilter.onDeleteSession' :
session.session_deleted}}

cherrypy.config.update(updateMap = update_map)

HTH,
jw

Reply via email to