mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-23 03:38:08 -06:00
#31: Remove old dict that was to be used for this purpose.
This commit is contained in:
parent
69e3205a68
commit
6f4501940e
@ -197,8 +197,6 @@ class Controller(object):
|
|||||||
self.buffers = []
|
self.buffers = []
|
||||||
# accounts list.
|
# accounts list.
|
||||||
self.accounts = []
|
self.accounts = []
|
||||||
# a dict for saving the current buffer position for each account (future)
|
|
||||||
self.buffer_positions = {}
|
|
||||||
# This saves the current account (important in invisible mode)
|
# This saves the current account (important in invisible mode)
|
||||||
self.current_account = ""
|
self.current_account = ""
|
||||||
self.view.prepare()
|
self.view.prepare()
|
||||||
@ -249,7 +247,6 @@ class Controller(object):
|
|||||||
account.setup_account()
|
account.setup_account()
|
||||||
self.buffers.append(account)
|
self.buffers.append(account)
|
||||||
self.view.add_buffer(account.buffer , name=session.settings["twitter"]["user_name"])
|
self.view.add_buffer(account.buffer , name=session.settings["twitter"]["user_name"])
|
||||||
self.buffer_positions[session.settings["twitter"]["user_name"]] = 1
|
|
||||||
|
|
||||||
def login_account(self, session_id):
|
def login_account(self, session_id):
|
||||||
for i in session_.sessions:
|
for i in session_.sessions:
|
||||||
@ -264,7 +261,6 @@ class Controller(object):
|
|||||||
session.get_user_info()
|
session.get_user_info()
|
||||||
if createAccounts == True:
|
if createAccounts == True:
|
||||||
self.accounts.append(session.db["user_name"])
|
self.accounts.append(session.db["user_name"])
|
||||||
self.buffer_positions[session.db["user_name"]] = 1
|
|
||||||
account = buffersController.accountPanel(self.view.nb, session.db["user_name"], session.db["user_name"], session.session_id)
|
account = buffersController.accountPanel(self.view.nb, session.db["user_name"], session.db["user_name"], session.session_id)
|
||||||
account.setup_account()
|
account.setup_account()
|
||||||
self.buffers.append(account)
|
self.buffers.append(account)
|
||||||
|
Loading…
Reference in New Issue
Block a user