Can I hook  a callback in to cherrypy  like tg does in the startup.py?

if startFoo not in cherrypy.server.on_start_server_list:
    cherrypy.server.on_start_server_list.append(startFoo)

if stopFoo not in cherrypy.server.on_stop_server_list:
    cherrypy.server.on_stop_server_list.append(stopFoo)

If I can, I was thinking of putting the hooks in the
start-ProjectName.py file just after
start_server(Root())

??

I am building a reporting/monitoring mechanism and I'll be heavily
modifying scheduler.py, so I want to move a copy into my project and
refer to it as projectname.scheduler instead.   Now I'm trying to
figure out how to mimic the tg code that handles autoreload.

thanks,

-- 
Jeff

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to