On 9/17/07, sukadeb acharya <sukadeb gmail.com> wrote:
> I got the code from this link:
> http://aroberge.blogspot.com/2006/04/cherrypy-is-grea
t.html
The code at that blog looks like it was written for CherryPy
2.x.
For 3.0.x, replace:
cherrypy.root = PythonRunner()
cherrypy.config.update({'session_filter.on': True})
if __name__ == '__main__':
cherrypy.config.update(file = 'tutorial.conf')
cherrypy.server.start()
with:
if __name__ == '__main__':
# add the session tool to your config
# [/]
# tools.sessions.on = True
cherrypy.tree.mount(PythonRunner(), '/',
'your_conf_file.conf')
cherrypy.server.quickstart()
cherrypy.engine.start()
Good luck,
Christian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|