gajim-plural/src/common/gajim.py

37 lines
1.0 KiB
Python
Raw Normal View History

2005-04-15 19:02:23 +02:00
## common/gajim.py
##
## Gajim Team:
## - Yann Le Boulanger <asterix@lagaule.org>
## - Vincent Hanquez <tab@snarc.org>
## - Nikos Kouremenos <kourem@gmail.com>
2005-04-15 19:02:23 +02:00
##
## Copyright (C) 2003-2005 Gajim Team
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published
## by the Free Software Foundation; version 2 only.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
import logging
import common.config
2005-04-16 00:02:13 +02:00
import common.logger
2005-04-15 19:02:23 +02:00
2005-05-27 15:20:34 +02:00
version = '0.7.1'
2005-04-15 19:02:23 +02:00
config = common.config.Config()
connections = {}
verbose = config.get('verbose')
2005-05-17 22:31:43 +02:00
h = logging.StreamHandler()
f = logging.Formatter('%(asctime)s %(name)s: %(message)s', '%d %b %Y %H:%M:%S')
h.setFormatter(f)
2005-04-15 19:02:23 +02:00
log = logging.getLogger('Gajim')
2005-05-17 22:31:43 +02:00
log.addHandler(h)
2005-04-16 00:02:13 +02:00
logger = common.logger.Logger()
2005-05-17 19:37:50 +02:00
DATA_DIR = '../data'