aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/mongo/open.py
Commit message (Collapse)AuthorAgeFilesLines
* RIP out mongoSebastian Spaeth2012-12-251-82/+0
| | | | | | | | | Since sqlalchemy is providing our database abstraction and we have moved away from Mongo as the underlying database, it is now time to simplify things and rip out mongo. This provides the bulk of the changes, and can stand on its own. There are some followup tasks that can be done, such as removing now unneeded abstraction layers, e.g. db.sql.fake.py
* Create load_models().Elrond2012-03-201-0/+4
| | | | | | | | | | | | So all models are ready when connecting to the db and so our "db" object has all models listed on it, create a function to load all models from the media_types, etc. Call it in setup_database() Problem: This gives celery warnings, because celery is imported before being setup properly. No idea how to fix this now. So media-type loading is excluded from load_models for now.
* It's 2012 all up in hereChristopher Allan Webber2012-02-021-1/+1
|
* Import MigrationManager from mongo in mongo backend.Elrond2012-01-041-1/+1
| | | | | | Inside the mongo db backend, use the mongo MigrationManager. This is hopefully the last reference to the generic MigrationManager reference on db.util.
* Factor out check_db_migrations_currentElrond2012-01-011-0/+23
| | | | | | | | | | When initializing the database connection the current mongo based setup checked for new migrations and warned about them. This was mongo specific so factor'd it out into a more generic check_db_migrations_current function in the mongo backend. Also created a dummy one in the sql backend.
* Move db/models.py -> db/mongo/models.pyElrond2011-12-201-1/+1
| | | | | To my surprise, there was only ONE reference to models.py. From open.py.
* Move db/open.py to db/mongo/open.pyElrond2011-12-201-0/+55
Starting to move the mongo specific stuff into db/mongo. And create thin "from db.mongo.Y import z" wrappers in db/Y.py. Why? 1) Will make it lots easier to switch to sql for testing/developing. 2) The mongo stuff needs to stay around after moving to sql, because the converter needs it.