Revision f424679c
Modification pour pylint : évite un avertissement sur la redéfinition de la fonction globale.
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@5904 b22e2e97-25c9-44ff-b637-2e5ceca36478
vigigraph/websetup.py | ||
---|---|---|
5 | 5 |
|
6 | 6 |
def setup_app(command, conf, variables): |
7 | 7 |
"""Place any commands to setup vigigraph here""" |
8 |
from vigilo.turbogears import populate_db |
|
8 |
from vigilo.turbogears import populate_db as tg_pop_db
|
|
9 | 9 |
from vigigraph.config.environment import load_environment |
10 | 10 |
|
11 | 11 |
load_environment(conf.global_conf, conf.local_conf) |
12 |
populate_db()
|
|
12 |
tg_pop_db()
|
|
13 | 13 |
|
14 | 14 |
def populate_db(bind): |
15 | 15 |
from vigilo.models.session import DBSession |
Also available in: Unified diff