From 9d82dff6fb4738b4efb1a7d3280562578f54ed08 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sun, 30 Nov 2014 15:17:09 -0600 Subject: [PATCH] Adding query property to DatabaseMaster for forward compatibility --- mediagoblin/db/open.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mediagoblin/db/open.py b/mediagoblin/db/open.py index c094f753..e85536de 100644 --- a/mediagoblin/db/open.py +++ b/mediagoblin/db/open.py @@ -64,6 +64,10 @@ if not DISABLE_GLOBALS: Session.rollback() Session.remove() + @property + def query(self): + return Session.query + else: from sqlalchemy.orm import sessionmaker -- 2.25.1