/offlineimap/head: changeset 259

Initial commit on initialization reorganization
This commit is contained in:
jgoerzen
2002-10-07 21:59:02 +01:00
parent ca56d8c899
commit 73199ad735
10 changed files with 377 additions and 329 deletions

View File

@ -16,7 +16,6 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from offlineimap import repository
import offlineimap.version
import re, time, sys, traceback
from StringIO import StringIO
@ -24,6 +23,14 @@ from StringIO import StringIO
debugtypes = {'imap': 'IMAP protocol debugging',
'maildir': 'Maildir repository debugging'}
globalui = None
def setglobalui(newui):
global globalui
globalui = newui
def getglobalui():
global globalui
return globalui
class UIBase:
def __init__(s, config, verbose = 0):
s.verbose = verbose