[twitter] better non logged management
This commit is contained in:
parent
05c7831d15
commit
5f954e6f46
1 changed files with 7 additions and 2 deletions
|
|
@ -46,7 +46,13 @@ class TwitterBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapCollection
|
|||
Value('profils_subscribe', label='Profils subscribe', default=''))
|
||||
|
||||
def create_default_browser(self):
|
||||
return self.create_browser(self.config['username'].get(), self.config['password'].get())
|
||||
username = self.config['username'].get()
|
||||
if username:
|
||||
password = self.config['password'].get()
|
||||
else:
|
||||
password = None
|
||||
|
||||
return self.create_browser(username, password)
|
||||
|
||||
def iter_threads(self):
|
||||
if self.config['username'].get():
|
||||
|
|
@ -61,7 +67,6 @@ class TwitterBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapCollection
|
|||
tweets.sort(key=lambda o: o.date, reverse=True)
|
||||
return tweets
|
||||
|
||||
|
||||
def get_thread(self, _id, thread=None, getseen=True):
|
||||
seen = None
|
||||
if getseen:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue