aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/mongo/models.py
Commit message (Collapse)AuthorAgeFilesLines
* It's 2012 all up in hereChristopher Allan Webber2012-02-021-1/+1
|
* Moved get_license_data to mixin.py, added license to sql media model, added ↵Aaron Williamson2012-01-181-5/+1
| | | | translation tags to license template.
* Fixed a syntax error in edit/views and added back in some missing license ↵Aaron Williamson2012-01-171-1/+8
| | | | stuff from models
* Fixed merge with upstreamAaron Williamson2012-01-171-106/+47
|
* Merged changes with upstreamAaron Williamson2012-01-171-47/+106
|
* Fix url_for_self mixupElrond2012-01-111-21/+0
| | | | | Move changes from mongo/models:url_for_self back into mixin:url_for_self.
* Merge branch 'master' of gitorious.org:mediagoblin/mediagoblinChristopher Allan Webber2012-01-101-40/+4
|\ | | | | | | | | Conflicts: mediagoblin/db/mongo/models.py
| * Add DB Mixin classes and use themElrond2012-01-081-59/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A bunch of functions on the db objects are really more like "utility functions": They could live outside the classes and be called "by hand" passing the appropiate reference. They usually only use the public API of the object and rarely use database related stuff. Goals: - First, simple: Share the code with the SQL objects, so that the code doesn't need to be duplicated. - Second, it might unclutter the db models and make them more into "model only" stuff. - Doesn't really hurt.
* | Fixed #724 and added extra infos to the atom feed (author uri and links to ↵Michele Azzolari2012-01-101-3/+5
|/ | | | the html version of each entry)
* Turn media.get_uploader into a propertyElrond2011-12-271-1/+2
| | | | | | | sqlalchemy gives autoloading (hopefully caching) link to other objects as properties. So turn get_uploader on the current mongo based stuff into a property to ease transition.
* Use media.url_for_self instead of calling urlgen directlyElrond2011-12-271-8/+4
| | | | | | | | | Replace urlgen('ID', user=media.get_uploader().username, media=media.*) by media.url_for_self(urlgen) in a few places. It's just a lot nicer!
* Move verification key generation to viewElrond2011-12-271-2/+0
| | | | | | | | Instead of creating the email verication key on the db model as a default for the field, create it in the registration view. Now all verification key generation is only in auth/views.py!
* Turn MediaComment's author() into get_author propertyElrond2011-12-231-1/+2
| | | | | | | | | 1) MediaComment's author method conflicts with the author field. So rename it to get_author. 2) Turn it from a normal function into a python property. That means you call it by ".get_author" not by ".get_author()". This is exactly what sqlalchemy gives us free of charge.
* Move db/models.py -> db/mongo/models.pyElrond2011-12-201-0/+363
To my surprise, there was only ONE reference to models.py. From open.py.