On May 18, 2011, at 4:57 PM, Branko Vukelic wrote: > f it's a multi-user app, why would it have an option to terminate the > server? If you terminate the server, it will terminate any active > sessions. > > A better way would be to store the server state for each session and > just prevent the app from serving normally when the state is > ``terminated == True``.
Thanks for the suggestions. I hadn't thought if that way. This is probably an oddball situation. The application is used to process paperwork for amateur radio license test sessions. Most oft the time, the test sessions are small and the paperwork is processed by a single user on a single workstation. But once in a while, we hold a huge test session and have 6-8 workstations on a LAN. To save coding, for the single user mode, I just run the server and a web browser on the same machine. That's the application where I was thinking of being able to shut down the server via the web browser. Mark -- 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.
