mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -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)
|
self.session.db[self.name].append(i)
|
||||||
selection = self.buffer.list.get_selected()
|
selection = self.buffer.list.get_selected()
|
||||||
self.put_items_on_list(elements)
|
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)))
|
output.speak(_(u"%s items retrieved") % (str(elements)))
|
||||||
|
|
||||||
def remove_buffer(self):
|
def remove_buffer(self):
|
||||||
@ -522,7 +525,10 @@ class peopleBufferController(baseBufferController):
|
|||||||
self.session.db[self.name]["items"].append(i)
|
self.session.db[self.name]["items"].append(i)
|
||||||
selected = self.buffer.list.get_selected()
|
selected = self.buffer.list.get_selected()
|
||||||
self.put_items_on_list(len(items))
|
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)))
|
output.speak(_(u"%s items retrieved") % (len(items)))
|
||||||
|
|
||||||
def put_items_on_list(self, number_of_items):
|
def put_items_on_list(self, number_of_items):
|
||||||
|
@ -351,6 +351,7 @@ class Controller(object):
|
|||||||
self.destroy_buffer("timelines", user)
|
self.destroy_buffer("timelines", user)
|
||||||
for i in session.settings["other_buffers"]["timelines"]:
|
for i in session.settings["other_buffers"]["timelines"]:
|
||||||
self.destroy_buffer("%s-timeline" % (i,), user)
|
self.destroy_buffer("%s-timeline" % (i,), user)
|
||||||
|
self.destroy_buffer("favs_timelines", user)
|
||||||
self.destroy_buffer("searches", user)
|
self.destroy_buffer("searches", user)
|
||||||
for i in session.settings["other_buffers"]["tweet_searches"]:
|
for i in session.settings["other_buffers"]["tweet_searches"]:
|
||||||
self.destroy_buffer("%s-searchterm" % (i,), user)
|
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')
|
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,))
|
auth = twitter.get_authentication_tokens("http://127.0.0.1:{0}".format(port,))
|
||||||
webbrowser.open_new_tab(auth['auth_url'])
|
webbrowser.open_new_tab(auth['auth_url'])
|
||||||
# global logged, verifier
|
|
||||||
while authorisationHandler.logged == False:
|
while authorisationHandler.logged == False:
|
||||||
httpd.handle_request()
|
httpd.handle_request()
|
||||||
self.twitter = Twython(keyring.get("api_key"), keyring.get("api_secret"), auth['oauth_token'], auth['oauth_token_secret'])
|
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