I would prefer if I could have simple_server write its logging to file
(yes, i know what the simple in its name implies... ;) to facilitate
some debugging. Is there a trick how to obtain this, even at os (X)
level, however unpretty ?
On another note - thanks for the new versions of durus and quixote...
I was wondering about one of the announced changes:
* Call maintain_session on "interrupted" requests, too.
Is this due to the problem I reported earlier, concerning that a
session is never created if not yet existing, on interrupted requests?
And, would there the code below (posted earlier):
class DemoSessionPublisher(SessionPublisher):
def finish_interrupted_request(self, exc):
if isinstance(exc, NotLoggedInError):
get_publisher().finish_successful_request()
return self.root_directory.login()
else:
return SessionPublisher.finish_interrupted_request(self,
exc)
now become:
class DemoSessionPublisher(SessionPublisher):
def finish_interrupted_request(self, exc):
if isinstance(exc, NotLoggedInError):
return self.root_directory.login()
else:
return SessionPublisher.finish_interrupted_request(self,
exc)
mario