aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/util.py
Commit message (Collapse)AuthorAgeFilesLines
* adds previous and next links in the sidebarCaleb Forbes Davis V2011-07-021-1/+1
| | | | | | | | Feature #401 - previous/next navigation on media pages * media.html includes a new prev_next.html template containing the links * prev_next.html calls functions added to the media model to retrieve the appropriate objects from the database, formatted with urlgen * a small change to util.py brings ASCENDING into the mix
* Documenging index utils and adjusting how remove_deprecated_indexes gets ↵Christopher Allan Webber2011-06-271-2/+17
| | | | | | | | | | arguments More specifically, we now just take a dictionary of lists, like: {'collection': ['index_identifier1', 'index_identifier2']} Previously we took something with more info like in add_new_indexes, but that extra info isn't really necessary.
* Tools to add / remove indexes from collectionsChristopher Allan Webber2011-06-271-0/+65
|
* Move InvalidId to db.utilElrond2011-06-201-0/+1
| | | | | | Instead of import InvalidId from the low level bson module, first import it in our db.util wrapper and second import it from pymongo.errors.
* Factor out most of the database connection into db/open.pyElrond2011-05-191-13/+0
| | | | | | | | 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
* Renaming connect_database to connect_database_from_config and using in ↵Christopher Allan Webber2011-05-181-1/+1
| | | | from_celery
* Need to import asint for users who specify ports via config fileChristopher Allan Webber2011-05-181-0/+2
|
* Adding copyright headers and explaining why these unused imports are hereChristopher Allan Webber2011-05-181-0/+18
|
* Move ObjectId, DESCENDING to db.utilElrond2011-05-181-0/+2
| | | | | | We used to import those from pymongo and mongokit directly. We should import them from a single place. So let's try db.util for this.
* Move "connect to database" into db/util.pyElrond2011-05-181-0/+11