rename Account to Partner
This commit is contained in:
parent
167946385a
commit
abfbda8867
@ -184,11 +184,11 @@ class APIObject(object):
|
||||
return self.__class__.makeUrl(self._id, parent)
|
||||
|
||||
|
||||
class Account(APIObject):
|
||||
class Partner(APIObject):
|
||||
@classmethod
|
||||
def makeUrl(cls, id=None, parent=None):
|
||||
if parent:
|
||||
raise ValueError("Account should not have a parent")
|
||||
raise ValueError("Partner should not have a parent")
|
||||
if id:
|
||||
raise NotImplementedError("There can be only one (Partner account)")
|
||||
return "/"
|
||||
|
Loading…
x
Reference in New Issue
Block a user