@@ -75,7 +75,7 @@ def connect():
7575 @return: Whether we are connected (not 100% certain).
7676 @rtype: C{bool}
7777 """
78- global db_type , db_schema , db_name , db_password , db_user , db_host , db_port , db_connection
78+ global db_connection
7979
8080 if db_connection is not None :
8181 return True # Already connected.
@@ -142,7 +142,7 @@ def _do_command(cmd, parms):
142142 @return: Cursor with the result, if all went well, else C{None}
143143 @rtype: db cursor, or C{None}
144144 """
145- global db_type , db_schema , db_name , db_password , db_user , db_host , db_port , db_connection
145+ global db_connection
146146
147147 if db_type == "postgress" :
148148 import psycopg2
@@ -176,8 +176,6 @@ def query(cmd, parms):
176176 @return: Cursor with the result, if all went well, else C{None}
177177 @rtype: db cursor, or C{None}
178178 """
179- global db_type , db_schema , db_name , db_password , db_user , db_host , db_port , db_connection
180-
181179 count = 0
182180 while count < 3 :
183181 # Connect if not connected.
@@ -225,9 +223,6 @@ def get_authentication(user, pwd):
225223 @return: UserAuthentication object to test accesses with.
226224 @rtype: C{UserAuthentication}
227225 """
228- global db_type , db_schema , db_name , db_password , db_user , db_host , db_port , db_connection
229- global owner_role , translator_roles
230-
231226 # Verify user.
232227 # Note that failure to authenticate is not fatal, it falls back to an 'unknown' user.
233228 if user is not None and user != "" and pwd is not None :
0 commit comments