representation of managermsg was fixed

develop
Aleksandr Sorokoumov 2012-08-26 16:30:34 +04:00
parent ed2be0e297
commit caf94ddb59
1 changed files with 5 additions and 1 deletions

View File

@ -124,8 +124,12 @@ class ManagerMsg(object):
def __getitem__(self, hname): def __getitem__(self, hname):
"""Return the specfied header""" """Return the specfied header"""
return self.headers[hname] return self.headers[hname]
def __repr__(self): def __repr__(self):
if 'Response' in self.headers:
return self.headers['Response'] return self.headers['Response']
else:
return self.headers['Event']
class Event(object): class Event(object):