From 0754a0b4bba7e8cc8cc98ca7f19b660321238c4b Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Mon, 17 Mar 2008 23:10:14 +0000 Subject: [PATCH] Apparently get_transaction_status() was introduced in psycopg 2.0.6. :( --- controller/Database.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/controller/Database.py b/controller/Database.py index 17494a9..7492032 100644 --- a/controller/Database.py +++ b/controller/Database.py @@ -123,10 +123,7 @@ class Database( object ): def rollback( self ): connection = self.__get_connection() - - # if a transaction has begun but not completed, then rollback the current transaction - if connection.get_transaction_status() > 0: - connection.rollback() + connection.rollback() def load( self, Object_type, object_id, revision = None ): """