Now it's possible to retrieve groups' timelines

This commit is contained in:
Manuel Cortez 2016-04-19 05:13:58 -05:00
parent d4aac60164
commit afd70f347f

View File

@ -196,14 +196,14 @@ class Controller(object):
b = self.get_current_buffer() b = self.get_current_buffer()
if not hasattr(b, "get_users"): if not hasattr(b, "get_users"):
b = self.search("home_timeline") b = self.search("home_timeline")
ids = b.get_users() # ids = b.get_users()
d = [] d = []
for i in ids: # for i in ids:
d.append((i, self.session.get_user_name(i))) # d.append((i, self.session.get_user_name(i)))
for i in self.session.db["users"]: for i in self.session.db["users"]:
d.append((i, self.session.get_user_name(i))) d.append((i, self.session.get_user_name(i)))
for i in self.session.db["groups"]: for i in self.session.db["groups"]:
d.append((i, self.session.get_user_name(i))) d.append((-i, self.session.get_user_name(-i)))
a = timeline.timelineDialog([i[1] for i in d]) a = timeline.timelineDialog([i[1] for i in d])
if a.get_response() == widgetUtils.OK: if a.get_response() == widgetUtils.OK:
user = a.get_user() user = a.get_user()