Permalink
Browse files

fix transaction context for py2.7

  • Loading branch information...
1 parent 0d6207c commit 0d184fe2cf190b45f73e9d81d6bae0f9b4d91952 @dag committed May 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 flaskext/zodb.py
View
@@ -151,7 +151,7 @@ def transaction(self):
"""
with closing(self.db.open()) as connection:
- with transaction:
+ with transaction.manager:
yield connection.root()

0 comments on commit 0d184fe

Please sign in to comment.