I'm writing a browser-based desktop app using CherryPy.
I`m using a combination of ideas from the two recipes linked
on
http://w
ww.cherrypy.org/wiki/CherryPyRecipes
Basically, I start the app with
cherrypy.root = MyApp()
cherrypy.server.start_with_callback(webbrowser.open,
('http://localhost:8080',),)
and try to end it with a delay
#inside MyApp
def exit(self):
threading.Timer(1, cherrypy.server.stop).start()
return FinishPage
The problem I have is that the process itself does not end.
From the
documentation:
===
* cherrypy.server.stop()
Stop the CherryPy Server. Well, "suspend" might
be a better term - this
doesn't terminate the process.
===
I've tried raising various exceptions, with various delays,
to no
avail.
This is on Windows if it matters (actually, I'm really
looking for a
cross-platform solution).
André
--~--~---------~--~----~------------~-------~--~----~
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 http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
|