Renamed <object>._trovebox to <object>._client, to match API classes.

Changed _type to a class attribute.
This commit is contained in:
sneakypete81 2013-09-09 18:08:11 +01:00
parent 3cfc090dd0
commit 7a7b43afc7
6 changed files with 66 additions and 67 deletions

View file

@ -3,11 +3,11 @@ Base object supporting the storage of custom fields as attributes
"""
class TroveboxObject(object):
""" Base object supporting the storage of custom fields as attributes """
def __init__(self, trovebox, json_dict):
self._type = "None"
_type = "None"
def __init__(self, client, json_dict):
self.id = None
self.name = None
self._trovebox = trovebox
self._client = client
self._json_dict = json_dict
self._set_fields(json_dict)