aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/mongo/util.py
Commit message (Collapse)AuthorAgeFilesLines
* RIP out mongoSebastian Spaeth2012-12-251-318/+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 function to search media by slug.Elrond2012-03-161-0/+6
| | | | | | | | | Searching media by slug is easy on mongo. But doing the joins in sqlalchemy is not as nice. So created a function for doing it. Well, and create the same function for mongo, so that it also works.
* Generic check_media_slug_used db utility.Elrond2012-03-051-0/+9
| | | | | | | | In two cases (generating a new slug and editing the slug) it is nice to know in advance (before the db gets angry) that the slug is used/free. So created a db utility function to check for this on mongo and sql: check_media_slug_used()
* Create atomic_update db utility functionElrond2012-03-041-0/+11
| | | | | | | | | In some cases (notably the mark_entry_failed function) it is useful to have atomic update functionality on the db. On mongo this requires special syntax. So created an atomic_update function for mongo and started to use it in mark_entry_failed.
* It's 2012 all up in hereChristopher Allan Webber2012-02-021-1/+1
|
* Move db/util.py -> db/mongo/util.pyElrond2011-12-201-0/+292
- Change some reference - Provide a wrapper db/util.py