Move message handling in RPC responses out of individual commands and to a general property of the response.

This commit is contained in:
Ian Gulliver
2014-05-06 13:47:57 -07:00
parent cf05c0f620
commit bb5c0752b1
3 changed files with 17 additions and 10 deletions

View File

@@ -75,10 +75,7 @@ def session_required(handler):
else:
self.client = models.Client.FromGoogleUser(self.verified_google_user)
ret = {
'status': 'ok',
'responses': handler(self),
}
ret = handler(self)
if client_key != self.client.key():
# Tell the client that this changed
ret['client_id'] = auth.Sign(self.client.key())