Hi there, I currently have a python script that imports web.py and is built into an executable (using py2exe). The web server will be used offline and I have an XULRunner application as the front end. I need some way to close the server after sending an AJAX POST with: http://localhost:<port>/quit
I defined a quit function using sys.exit, but when the quit command is sent to the server, a Traceback and a 500 server error is returned. Like other python web frameworks, is there a graceful way to shut down the server? I sure hope that I don't have to resort to an ugly hack using a batch file that kills the EXE process. TIA. Cheers, Ben --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
