1
0
Fork 0

some pylint fixes (addresses #24)

This commit is contained in:
Jan Dittberner 2009-08-02 22:00:13 +02:00
parent ccaa207d36
commit 658ffea8ee
6 changed files with 19 additions and 16 deletions

View file

@ -21,7 +21,7 @@
"""This module defines the BackendEntityHandler class."""
import logging
from sqlalchemy.orm import create_session, mapper, relation
from sqlalchemy.orm import create_session
from gnuviechadmin.backend.tables import dbsetup

View file

@ -20,6 +20,9 @@
# USA.
#
# Version: $Id$
"""
Parse the configuration and setup logging.
"""
from sys import argv
from os import getcwd
@ -28,10 +31,10 @@ from paste.deploy import appconfig
from logging.config import fileConfig
if len(argv) > 1 and isfile(argv[1]):
configfile = argv[1]
CONFIGFILE = argv[1]
del argv[1]
else:
configfile = 'development.ini'
CONFIGFILE = 'development.ini'
config = appconfig('config:%s' % configfile, relative_to=getcwd())
fileConfig(configfile, config)
CONFIG = appconfig('config:%s' % CONFIGFILE, relative_to=getcwd())
fileConfig(CONFIGFILE, CONFIG)