mirror of
https://github.com/kennethreitz-archive/python-convore.git
synced 2026-06-05 15:30:18 +00:00
some attributes need to be set prior to calling the base class' __init__() method.
This commit is contained in:
+3
-4
@@ -92,10 +92,9 @@ class Groups(SyncedList):
|
|||||||
__data_keys__ = ['id', 'slug']
|
__data_keys__ = ['id', 'slug']
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(Groups, self).__init__()
|
|
||||||
|
|
||||||
self.discover = groups.GroupsDiscover()
|
self.discover = groups.GroupsDiscover()
|
||||||
self.discover.parent = self
|
self.discover.parent = self
|
||||||
|
super(Groups, self).__init__()
|
||||||
|
|
||||||
def joined(self):
|
def joined(self):
|
||||||
"""Returns list of Joined groups."""
|
"""Returns list of Joined groups."""
|
||||||
@@ -129,8 +128,8 @@ class Topics(SyncedList):
|
|||||||
__data_keys__ = ['id', 'slug']
|
__data_keys__ = ['id', 'slug']
|
||||||
|
|
||||||
def __init__(self, group):
|
def __init__(self, group):
|
||||||
super(Topics, self).__init__()
|
|
||||||
self.group = group
|
self.group = group
|
||||||
|
super(Topics, self).__init__()
|
||||||
|
|
||||||
def list(self):
|
def list(self):
|
||||||
return self.data
|
return self.data
|
||||||
@@ -160,8 +159,8 @@ class Messages(SyncedList):
|
|||||||
__data_keys__ = ['id', 'slug']
|
__data_keys__ = ['id', 'slug']
|
||||||
|
|
||||||
def __init__(self, topic):
|
def __init__(self, topic):
|
||||||
super(Messages, self).__init__()
|
|
||||||
self.topic = topic
|
self.topic = topic
|
||||||
|
super(Messages, self).__init__()
|
||||||
|
|
||||||
def list(self):
|
def list(self):
|
||||||
return self.data
|
return self.data
|
||||||
|
|||||||
Reference in New Issue
Block a user