aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/listings
Commit message (Collapse)AuthorAgeFilesLines
* Create function to search media by slug.Elrond2012-03-161-4/+2
| | | | | | | | | 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.
* Fix for mongo.Elrond2012-03-161-1/+4
| | | | | pymongo does not rewind a cursor after leaving a for loop. So let us do it by hand. Well.
* More efficient first element fetching and Dot-Notation.Elrond2012-03-161-2/+4
| | | | | | | | | | | | | | | _get_tag_name_from_entries: 1) Replace: if q.count(): elem = q[0] by: for element in q: ... break this doesn't do two db queries but only one. 2) And another dose of Dot-Notation as usual.
* Fix _get_tag_name_from_entries().Elrond2012-03-161-1/+1
| | | | Replace == by =.
* Drop pre-rendered html: MediaEntry.description_htmlElrond2012-02-181-1/+1
| | | | | | | | | | | After a bit of discussion, we decided to drop the pre-rendered html from the database and render it on the fly. In another step, we will use some proper caching method to cache this stuff. This commit affects the MediaEntry.description_html part.
* It's 2012 all up in hereChristopher Allan Webber2012-02-023-3/+3
|
* Fixed #724 and added extra infos to the atom feed (author uri and links to ↵Michele Azzolari2012-01-101-4/+20
| | | | the html version of each entry)
* Turn media.get_uploader into a propertyElrond2011-12-271-1/+1
| | | | | | | 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.
* Dot-Notation for Users.usernameElrond2011-12-051-1/+1
|
* Rename MediaEntry.uploader() to .get_uploader()Elrond2011-11-221-1/+1
| | | | | | | | The .uploader() method conflicts with the uploader database field. As we're moving to .FIELD for db field access, this is a relevant conflict. So renaming .uploader() to .get_uploader()
* Merge remote-tracking branch 'remotes/nyergler/pep8-ification'Christopher Allan Webber2011-11-132-2/+2
|\ | | | | | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py mediagoblin/db/models.py mediagoblin/user_pages/views.py mediagoblin/util.py
| * Whitespace and formatting cleanup.Nathan Yergler2011-10-012-2/+2
| | | | | | | | | | | | | | * Removed trailing whitespace * Line length < 80 where possible * Honor conventions on number of blank lines * Honor conventions about spaces around :, =
* | Finished splitting util.py into separate files.Aaron Williamson2011-10-011-1/+2
|/
* 508. Updates copyright/license informationWill Kahn-Greene2011-09-013-3/+3
|
* Added tags atom feed and linked it in the appropriate placesChristopher Allan Webber2011-07-312-13/+54
|
* Added tag listing views.Christopher Allan Webber2011-07-313-0/+97
Also added routing, added templates, etc.