diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-07-11 14:17:50 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-07-11 14:17:50 -0700 |
commit | 44082b12d8a418bacd1ca5b19f7ce2595e07c1ee (patch) | |
tree | 1c252c5ea85df0ab142b0b4ae1a3d5b1ab6230db /mediagoblin/db/base.py | |
parent | 3aeca53c85981fa46d61b41a7cf648d90637eb62 (diff) | |
download | mediagoblin-44082b12d8a418bacd1ca5b19f7ce2595e07c1ee.tar.lz mediagoblin-44082b12d8a418bacd1ca5b19f7ce2595e07c1ee.tar.xz mediagoblin-44082b12d8a418bacd1ca5b19f7ce2595e07c1ee.zip |
Patch by Strum. Ticket #451 - Convert all mongokit style .find, .find_one, .one calls over to SQLAlchemy queries
Diffstat (limited to 'mediagoblin/db/base.py')
-rw-r--r-- | mediagoblin/db/base.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/mediagoblin/db/base.py b/mediagoblin/db/base.py index 699a503a..c0cefdc2 100644 --- a/mediagoblin/db/base.py +++ b/mediagoblin/db/base.py @@ -24,18 +24,6 @@ Session = scoped_session(sessionmaker()) class GMGTableBase(object): query = Session.query_property() - @classmethod - def find(cls, query_dict): - return cls.query.filter_by(**query_dict) - - @classmethod - def find_one(cls, query_dict): - return cls.query.filter_by(**query_dict).first() - - @classmethod - def one(cls, query_dict): - return cls.find(query_dict).one() - def get(self, key): return getattr(self, key) |