Divmod : Nevow
Athena
Notify on disconnect
If you want to be notified when client disconnects, you can use LivePage's notifyOnDisconnect function.
class thePage(athena.LivePage):
def beforeRender(self, ctx):
d = self.notifyOnDisconnect()
d.addErrback(self.disconn)
def disconn(self, reason):
"""
We will be called back when the client disconnects
"""
pass
