On Saturday 01 March 2003 22:12, Ian Bicking wrote:
> On Sat, 2003-03-01 at 20:43, Randall Randall wrote:
> > Is there a 'normal' way to restart the AppServer from within
> > a page? Calling self.application().server().restart() doesn't
> > seem to do it (though it does prevent the page from actually
> > being served).
> I think you should call shouldRestart() instead of restart() -- only the
> main thread can initiate the restart, and shouldRestart() asks it to do
Hmm, I suggest renaming the current restart() to _restart() and replacing the
public method with something like this instead:
"""Tell the main thread to restart the server."""
self._shouldRestart = True
This was the naming scheme I used in the original code that WebKit 0.8's
version was based on. I'm not sure why this was renamed.
self._shouldRestart was meant to be a private implementation detail.