[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,7 +4,10 @@
|
||||||
import psycopg2
|
import psycopg2
|
||||||
|
|
||||||
try:
|
try:
|
||||||
conn = psycopg2.connect("user=crans dbname=switchs host=pgsql.adm.crans.org")
|
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
|
# Population de la tâble avec les bâtiments
|
||||||
cur = conn.cursor()
|
cur = conn.cursor()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue