Serialize address as part of ClientConnect objects.

This is a serialization format change!
This commit is contained in:
Aldo Cortesi 2012-07-01 00:16:30 +12:00
parent d74a341e5d
commit 35fdd16940
1 changed files with 2 additions and 0 deletions

View File

@ -655,12 +655,14 @@ class ClientConnect(controller.Msg):
def _load_state(self, state):
self.close = True
self.error = state["error"]
self.requestcount = state["requestcount"]
def _get_state(self):
return dict(
address = list(self.address),
requestcount = self.requestcount,
error = self.error,
)
@classmethod