aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/listings
Commit message (Collapse)AuthorAgeFilesLines
* Convert atom feeds to use feedgenerator library.Ben Sturmfels2021-03-161-31/+29
| | | | | | | | | | | | | | | Issue is that Werkzeug > 1.0.0 has removed werkzeug.contrib.atom.AtomFeed, making it difficult to use a distribution-packaged version of werkzeug. To solve this, I've replaced use of werkzeug.contrib.atom.AtomFeed with feedgenerator.Atom1Feed. After the change, the only major difference between the feeds before and after is that they use <summary> instead of <content>. Minor differences include no longer adding 'type="text/html"' on some <link> elements and no "xml:base" attribute on <entry> elements. I don't think these differences will have any noticable effect. Tested on Liferea feed reader.
* Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code.Ben Sturmfels2021-03-051-4/+4
|
* Fix error generating Atom feed upon blank title [#1018].Ben Sturmfels2020-05-111-1/+4
|
* Fix #5500 UnicodeEncodeError in atom feedAndrew Browning2017-02-141-1/+1
| | | | | | This simple fix allows unicode strings in the atom feed thumb and description fields by forcing the entire atom content string to unicode.
* Apply consistency & PEP8 to atom feedsAndrew Browning2016-11-041-18/+24
| | | | | | | This patch applies the atom feed thumbnail changes from 65d8ca7 to user atom feeds and rearranges the code in both views for better consistency with PEP8 and with each other. It also fixes a spacing issue with the feed title on the main page.
* Add thumbnail image to Atom feed.Ben Sturmfels2016-11-041-2/+11
| | | | Signed-off-by: Andrew Browning <ayleph@thisshitistemp.com>
* Collection changes and migration for federationJessica Tallon2015-10-071-2/+2
| | | | | | | - Adds a "type" column to the Collection object and allows the CollectionItem model to contain any object. - Changes "items" to "num_items" as per TODO - Renames "uploader", "creator" and "user" to a common "actor" in most places
* Patch submitted by mrb.Rodney Ewing2013-07-111-3/+14
| | | | | | Fix to link to the pubsub hub for atom_feed 'by tag'. Added 'rel': 'alternate' and 'type': 'text/html' to 'atomlinks'
* Fix stray comma in listings.views.atom_feedJoar Wandborg2013-02-221-1/+1
|
* Changing name for atom feed view to be more generic than tags.Christopher Allan Webber2013-02-222-3/+4
| | | | This commit sponsored by Ben Hutchings. Thanks, Ben!
* Adding an Atom RSS feed for all media on the serverSebastian Spaeth2013-02-222-10/+19
| | | | Go to /atom/ in your browser to see it.
* Move db.sql.models* to db.models*Sebastian Spaeth2013-01-071-1/+1
|
* Remove mediagoblin.db.sql.fake.DESCENDINGSebastian Spaeth2013-01-071-4/+4
| | | | | | | | This is the last remnant that requires us to keep db.sql.fake.py. Use ModelName.desc() or sqlalchemy.sql.expression.desc(column) to achieve descending sorts. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* RIP out mongoSebastian Spaeth2012-12-251-4/+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
* Move things from routing.py to tools/routing.pyElrond2012-12-231-1/+1
| | | | | | | This stops a cyclic import. Move add_route, mount and endpoint_to_controller into tools/routing.py and change all callers.
* Switched most stuff over from RoutesJoar Wandborg2012-10-141-10/+6
| | | | | | | | | | Removed the Routes routing functionality and replaced it with werkzeug.routes. Most views are functional. Known issues: - Translation integration with the request object is not yet figured out. This breaks 404 pages.
* Fix atom feed for tags.Elrond2012-04-091-3/+1
| | | | | This one was missed. Needs to call a big sql join. Luckily the join was already implemented.
* 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.