[Blends-commit] r2905 - in /blends/trunk/team_analysis_tools: author_stats_helper.py maintain_names_prefered.py
tille at users.alioth.debian.org
tille at users.alioth.debian.org
Fri Jul 22 20:04:40 UTC 2011
Author: tille
Date: Fri Jul 22 20:04:40 2011
New Revision: 2905
URL: http://svn.debian.org/wsvn/blends/?sc=1&rev=2905
Log:
Make sure we can connect also on blends.debian.net
Modified:
blends/trunk/team_analysis_tools/author_stats_helper.py
blends/trunk/team_analysis_tools/maintain_names_prefered.py
Modified: blends/trunk/team_analysis_tools/author_stats_helper.py
URL: http://svn.debian.org/wsvn/blends/blends/trunk/team_analysis_tools/author_stats_helper.py?rev=2905&op=diff
==============================================================================
--- blends/trunk/team_analysis_tools/author_stats_helper.py (original)
+++ blends/trunk/team_analysis_tools/author_stats_helper.py Fri Jul 22 20:04:40 2011
@@ -22,7 +22,8 @@
import re
try:
- conn = psycopg2.connect(database=DB)
+ # conn = psycopg2.connect(database=DB)
+ conn = psycopg2.connect(host="localhost",port=PORT,user="guest",database=DB)
except psycopg2.OperationalError:
try:
conn = psycopg2.connect(host="localhost",port=DEFAULTPORT,user="guest",database=DB)
Modified: blends/trunk/team_analysis_tools/maintain_names_prefered.py
URL: http://svn.debian.org/wsvn/blends/blends/trunk/team_analysis_tools/maintain_names_prefered.py?rev=2905&op=diff
==============================================================================
--- blends/trunk/team_analysis_tools/maintain_names_prefered.py (original)
+++ blends/trunk/team_analysis_tools/maintain_names_prefered.py Fri Jul 22 20:04:40 2011
@@ -133,8 +133,12 @@
try:
conn = psycopg2.connect(database="udd")
except psycopg2.OperationalError:
- print >>stderr, "Problem connecting to UDD"
- exit(-1)
+ try:
+ conn = psycopg2.connect(port=PORT,database="udd")
+ #conn = psycopg2.connect(port=PORT,user="tille",database="udd")
+ except psycopg2.OperationalError:
+ print >>stderr, "Problem connecting to UDD"
+ exit(-1)
try:
conn = psycopg2.connect(database="udd")
except psycopg2.OperationalError:
More information about the Blends-commit
mailing list