Revision 87cf652b
Correction des websetup des différentes applications.
Correction de petits problèmes pour la gestion du préfixe des tables.
Mise à jour des scripts de manipulation de la BDD.
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@2560 b22e2e97-25c9-44ff-b637-2e5ceca36478
vigigraph/websetup.py | ||
---|---|---|
3 | 3 |
|
4 | 4 |
import logging |
5 | 5 |
|
6 |
import transaction |
|
7 |
from tg import config |
|
8 |
|
|
9 | 6 |
from vigigraph.config.environment import load_environment |
10 | 7 |
from vigilo.turbogears import populate_db |
11 | 8 |
|
... | ... | |
27 | 24 |
from paste.script.appinstall import SetupCommand |
28 | 25 |
import os.path |
29 | 26 |
|
30 |
ini_file = '/etc/vigilo/vigigraph/settings.ini'
|
|
31 |
ini_file = os.path.join('/', *ini_file.split('/'))
|
|
27 |
ini_file = os.getenv("VIGILO_SETTINGS",
|
|
28 |
"/etc/vigilo/vigigraph/settings.ini")
|
|
32 | 29 |
|
33 | 30 |
cmd = SetupCommand('setup-app') |
34 | 31 |
cmd.run([ini_file]) |
Also available in: Unified diff