diff idavoll/pgsql_storage.py @ 163:1701c0e2c707

Add --dbpass option for passing a password to the PostgreSQL backend. Author: edwinm Reviewer: ralphm Fixes #1
author Ralph Meijer <ralphm@ik.nu>
date Thu, 07 Sep 2006 11:13:46 +0000
parents 5191ba7c4df8
children ef22e4150caa
line wrap: on
line diff
--- a/idavoll/pgsql_storage.py	Wed Sep 06 12:57:53 2006 +0000
+++ b/idavoll/pgsql_storage.py	Thu Sep 07 11:13:46 2006 +0000
@@ -12,9 +12,10 @@
 
     implements(storage.IStorage)
 
-    def __init__(self, user, database):
+    def __init__(self, user, database, password = None):
         self._dbpool = adbapi.ConnectionPool('pyPgSQL.PgSQL',
                                              user=user,
+                                             password=password,
                                              database=database,
                                              client_encoding='utf-8'
                                              )