Factor out most of the database connection into db/open.py
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Wed, 18 May 2011 23:35:02 +0000 (01:35 +0200)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Wed, 18 May 2011 23:35:02 +0000 (01:35 +0200)
commita67fec8177c09c4e74ce7f4301b88f4e7ea6e658
tree72cfef277382314716e101988b6469dba324ae64
parent86f9b473877434e5a811d057e192c91a70d67ef5
Factor out most of the database connection into db/open.py

I needed to split the db connection/opening into open.py,
due to an import loop:
- util.py needs db/util.py:ObjectId
- db/util.py would need db/models.py
- db/models.py needs util.py:slugify
mediagoblin/app.py
mediagoblin/celery_setup/from_celery.py
mediagoblin/db/open.py [new file with mode: 0644]
mediagoblin/db/util.py