Mercurial > p > roundup > code
comparison roundup/backends/back_postgresql.py @ 2744:4dd01588db90 maint-0.7
Make postgres backend not work for the moment...
...until I can get a second db-level change in for version 4 (and thus
don't have to worry about creating version 5)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 08 Oct 2004 08:07:33 +0000 |
| parents | 8140fb128088 |
| children | adce02da25b7 |
comparison
equal
deleted
inserted
replaced
| 2743:76e5097dc22d | 2744:4dd01588db90 |
|---|---|
| 88 | 88 |
| 89 class Database(rdbms_common.Database): | 89 class Database(rdbms_common.Database): |
| 90 arg = '%s' | 90 arg = '%s' |
| 91 | 91 |
| 92 def sql_open_connection(self): | 92 def sql_open_connection(self): |
| 93 raise NotImplementedError, "Please don't use me just yet..." | |
| 93 db = getattr(self.config, 'POSTGRESQL_DATABASE') | 94 db = getattr(self.config, 'POSTGRESQL_DATABASE') |
| 94 try: | 95 try: |
| 95 conn = psycopg.connect(**db) | 96 conn = psycopg.connect(**db) |
| 96 except psycopg.OperationalError, message: | 97 except psycopg.OperationalError, message: |
| 97 raise hyperdb.DatabaseError, message | 98 raise hyperdb.DatabaseError, message |
