Created
June 29, 2013 16:56
-
-
Save gregimba/5891841 to your computer and use it in GitHub Desktop.
In order to properly use pony with flask you need to add a second decorator to your function.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@index.route('/') | |
@with_transaction | |
def Show(): | |
db = Database('sqlite', '/Users/grant/Documents/Archer/db.sqlite') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment