From f2bb173ddb0d682ffb695dffcf26375c904376cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Tue, 24 Mar 2015 03:47:16 -0600 Subject: [PATCH] A few bugfixes --- src/controller/buffersController.py | 10 ++++++++-- src/controller/mainController.py | 1 + src/twitter/twitter.py | 1 - 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/controller/buffersController.py b/src/controller/buffersController.py index fa9abd32..3a9b6632 100644 --- a/src/controller/buffersController.py +++ b/src/controller/buffersController.py @@ -245,7 +245,10 @@ class baseBufferController(bufferController): self.session.db[self.name].append(i) selection = self.buffer.list.get_selected() self.put_items_on_list(elements) - self.buffer.list.select_item(selection+elements) + if self.session.settings["general"]["reverse_timelines"] == True: +# self.buffer.list.select_item(selection+elements) +# else: + self.buffer.list.select_item(selection) output.speak(_(u"%s items retrieved") % (str(elements))) def remove_buffer(self): @@ -522,7 +525,10 @@ class peopleBufferController(baseBufferController): self.session.db[self.name]["items"].append(i) selected = self.buffer.list.get_selected() self.put_items_on_list(len(items)) - self.buffer.list.select_item(selected+len(items)) + if self.session.settings["general"]["reverse_timelines"] == True: + self.buffer.list.select_item(selection) +# else: +# self.buffer.list.select_item(selection-elements) output.speak(_(u"%s items retrieved") % (len(items))) def put_items_on_list(self, number_of_items): diff --git a/src/controller/mainController.py b/src/controller/mainController.py index af6abb73..dbffc704 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -351,6 +351,7 @@ class Controller(object): self.destroy_buffer("timelines", user) for i in session.settings["other_buffers"]["timelines"]: self.destroy_buffer("%s-timeline" % (i,), user) + self.destroy_buffer("favs_timelines", user) self.destroy_buffer("searches", user) for i in session.settings["other_buffers"]["tweet_searches"]: self.destroy_buffer("%s-searchterm" % (i,), user) diff --git a/src/twitter/twitter.py b/src/twitter/twitter.py index 53c1ad1b..9ec4680e 100644 --- a/src/twitter/twitter.py +++ b/src/twitter/twitter.py @@ -21,7 +21,6 @@ class twitter(object): twitter = Twython(keyring.get("api_key"), keyring.get("api_secret"), auth_endpoint='authorize') auth = twitter.get_authentication_tokens("http://127.0.0.1:{0}".format(port,)) webbrowser.open_new_tab(auth['auth_url']) -# global logged, verifier while authorisationHandler.logged == False: httpd.handle_request() self.twitter = Twython(keyring.get("api_key"), keyring.get("api_secret"), auth['oauth_token'], auth['oauth_token_secret'])