[annuaires_pg] Création d'un annuaires_pg_test
darcs-hash:20110227125522-ffbb2-deb8333b994c48a86651aacac4adf04f05bd8e46.gz
This commit is contained in:
parent
74caa032a9
commit
f9656d31bd
1 changed files with 4 additions and 1 deletions
|
@ -4,6 +4,9 @@
|
|||
import psycopg2
|
||||
|
||||
try:
|
||||
if __name__ == 'annuaires_pg_test':
|
||||
conn = psycopg2.connect("user=crans dbname=switchs host=localhost")
|
||||
else:
|
||||
conn = psycopg2.connect("user=crans dbname=switchs host=pgsql.adm.crans.org")
|
||||
|
||||
# Population de la tâble avec les bâtiments
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue