Commit e97af55e by Calen Pennington

Add a nicer repr to AccessResponse objects

parent b3880714
...@@ -56,6 +56,14 @@ class AccessResponse(object): ...@@ -56,6 +56,14 @@ class AccessResponse(object):
"user_message": self.user_message "user_message": self.user_message
} }
def __repr__(self):
return "AccessResponse({!r}, {!r}, {!r}, {!r})".format(
self.has_access,
self.error_code,
self.developer_message,
self.user_message
)
class AccessError(AccessResponse): class AccessError(AccessResponse):
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment