From 10b5eccc73b8df0ac9dfc8fa583fc68adbc3f45d Mon Sep 17 00:00:00 2001 From: mdipierro Date: Fri, 9 Aug 2013 15:06:53 -0500 Subject: [PATCH] re-fixing issue 1623, thanks niphlod for checking (still this can be done better) --- VERSION | 2 +- gluon/restricted.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 0691567b..57155acd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.6.0-development+timestamp.2013.08.09.14.13.07 +Version 2.6.0-development+timestamp.2013.08.09.15.06.03 diff --git a/gluon/restricted.py b/gluon/restricted.py index 5a0cb5e8..34afcf5e 100644 --- a/gluon/restricted.py +++ b/gluon/restricted.py @@ -49,10 +49,11 @@ class TicketStorage(Storage): def _store_in_db(self, request, ticket_id, ticket_data): table = self._get_table(self.db, self.tablename, request.application) + table._db.rollback() table.insert(ticket_id=ticket_id, ticket_data=cPickle.dumps(ticket_data), created_datetime=request.now) - self.db.commit() + table._db.commit() logger.error('In FILE: %(layer)s\n\n%(traceback)s\n' % ticket_data) def _store_on_disk(self, request, ticket_id, ticket_data):