fixed some issues in dal.py and sqlhtml.py thanks Michele

This commit is contained in:
Massimo Di Pierro
2012-02-01 11:36:26 -06:00
parent 89a796b794
commit b832ca68ee
3 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -1930,7 +1930,7 @@ class PostgreSQLAdapter(BaseAdapter):
def __init__(self,db,uri,pool_size=0,folder=None,db_codec ='UTF-8',
credential_decoder=lambda x:x, driver_args={},
adapter_args={}):
if not self.drivers.get('psycopg2') and not self.drivers.get('psycopg2'):
if not self.drivers.get('psycopg2') and not self.drivers.get('pg8000'):
raise RuntimeError, "Unable to import any drivers (psycopg2 or pg8000)"
self.db = db
self.dbengine = "postgres"