Store created sessions in the sessions module

This commit is contained in:
2018-08-17 12:16:51 -05:00
parent 0cfa89b389
commit 8cf7ca5ef2
4 changed files with 41 additions and 37 deletions

View File

@@ -1 +1,5 @@
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
""" this package contains code related to Sessions.
In TWBlue, a session module defines everything a social network needs to be used in the program."""
# let's define a global object for storing sessions across the program.
sessions = {}

View File

@@ -18,8 +18,6 @@ from sessions.twitter.long_tweets import tweets, twishort
from wxUI import authorisationDialog
from sessions import base
sessions = {}
class Session(base.baseSession):
""" A session object where we will save configuration, the twitter object and a local storage for saving the items retrieved through the Twitter API methods"""