mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
A few bugfixes
This commit is contained in:
parent
e046fdd198
commit
f2bb173ddb
@ -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):
|
||||
|
@ -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)
|
||||
|
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user