aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db
Commit message (Collapse)AuthorAgeFilesLines
* No need for a method for generating the verification key as a methodChristopher Allan Webber2011-06-021-8/+0
| | | | on the class, can just do that in the view
* Merge remote branch 'remotes/aleks/aleks'Christopher Allan Webber2011-05-311-0/+8
|\
| * Added the ability to regenerate a verification key.Aleksandar Micovic2011-05-311-0/+8
| |
* | Add an index on MediaEntries making sure slugs + uploader combos are uniqueChristopher Allan Webber2011-05-301-6/+5
|/
* remove all 'username_repr' stuffJakob Kramer2011-05-291-2/+1
|
* this should fix #354Jakob Kramer2011-05-291-1/+2
|
* Update all the views so that they use the uploader reference insteadChristopher Allan Webber2011-05-221-2/+7
| | | | of uploader embedding
* User migration works (but the rest of the system isn't updated for new user ↵Christopher Allan Webber2011-05-222-1/+44
| | | | setup yet)
* Added a url_for_self method for generating mediaentry linksChristopher Allan Webber2011-05-201-0/+18
| | | | This allows for optionally making the url based off of slugs or ids
* Factor out most of the database connection into db/open.pyElrond2011-05-192-13/+37
| | | | | | | | 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-182-0/+33
|
* 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
|
* Move models into new db/ directoryElrond2011-05-182-0/+128
The database is a central point of interest/discussion. Represent that by its own directory. This will surely become more interesting when we have migrations for example.