fixed error reporting in dal

This commit is contained in:
mdipierro
2012-11-30 08:34:11 -06:00
parent 1e7315d4a8
commit d2b4099cdb
3 changed files with 3 additions and 3 deletions

View File

@@ -1 +1 @@
Version 2.2.1 (2012-11-29 23:53:48) stable
Version 2.2.1 (2012-11-30 08:33:32) stable

View File

@@ -706,7 +706,7 @@ class BaseAdapter(ConnectionPool):
self.driver_name = drivers_available[0]
self.driver = globals().get(self.driver_name)
else:
raise RuntimeError("no driver available %s" % self.drivers)
raise RuntimeError("no driver available %s" % str(self.drivers))
def __init__(self, db,uri,pool_size=0, folder=None, db_codec='UTF-8',

View File

@@ -1,6 +1,6 @@
read -p "Choose your admin password?" passwd
sudo pip install virtualenv
sudo pip install postgresql2
sudo pip install psycopg2
virtualenv venv --distribute
source venv/bin/activate
pip freeze > requirements.txt