aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/user_pages/routing.py
Commit message (Collapse)AuthorAgeFilesLines
* Use media.id for collecting media too.Elrond2013-02-241-1/+1
| | | | Also remove some useless whitespace while at it.
* Use the media id for attachmemt editing.Elrond2013-02-241-1/+1
| | | | And remove some stray white space from the output.
* Making the tags on media pages point to the user's tag listing specifically.Christopher Allan Webber2013-02-211-1/+1
| | | | This commit sponsored by Torsten Meissner. Thanks, Torsten!
* Implement user's tag filtered gallery pageSebastian Spaeth2013-01-211-0/+5
| | | | | | | | tags used to be global, you could only browse media by tag for all users. This patch implements a view that allows us to browse only a user's tagged media. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Fix linking to comments.Elrond2013-01-171-1/+1
| | | | | | | | | | | | | | when linking to a comment in a MediaEntry, the page did not contain a <a name="comment"> because, well: We fetched a string comment-id from the routing. And the pagination code tried to compare that to the int id on the comment. Fix is to let routing fetch an int from the url. Easy. Relatedly remove duplicated comment_id fetching from the URL in the view.
* Merge remote-tracking branch 'refs/remotes/elrond/misc/use_media_id'Christopher Allan Webber2013-01-161-3/+3
|\
| * Start to use the media_id in "admin" URLs.Elrond2013-01-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | We have a bunch of URLs that are more for internal use. At least they're definitely not intended to be posted somewhere for long term useage. When those things affect a media, it's much better to reference the media by its id. This can't change, ever. This is better for races. Like someone posting a comment while the owner corrects a typo in the slug.
* | collection browsing: rename view/template user_collections -> collection_listStefano Zacchiroli2013-01-151-2/+2
| | | | | | | | | | Rationale, avoid confusion between views user_collection and user_collections (note trailing "s"). Ditto for the collection(s).html templates.
* | collections: add support to browse existing collectionsStefano Zacchiroli2013-01-151-0/+4
|/ | | | | | | - add a route at /u/<user>/collections/ (note trailing 's') that lists all existing collections - move there the "Create new collection" link, if the user is logged in - add a new link "Browse collections" from root.html
* 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.
* Remove mongolisms from user_pages.view #451Sebastian Spaeth2012-12-211-0/+1
|
* Fixed attachmentsJoar Wandborg2012-10-231-1/+1
|
* Fixed 404 page under werkzeug.routingJoar Wandborg2012-10-141-1/+1
| | | | | - Removed ?lang=<langcode> feature due to incompatibility with werkzeug routes in the current state of the architecture.
* Switched most stuff over from RoutesJoar Wandborg2012-10-141-45/+65
| | | | | | | | | | 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.
* Added basic collection functionalityAaron Williamson2012-09-181-0/+15
|
* It's 2012 all up in hereChristopher Allan Webber2012-02-021-1/+1
|
* 508. Updates copyright/license informationWill Kahn-Greene2011-09-011-1/+1
|
* Feature #403 - Ability to delete media entries - Fixes according to feedbackJoar Wandborg2011-08-301-2/+2
| | | | | | | | | | * Moved `mediagoblin.confirm` stuff to `mediagoblin.user_pages`, templates too. * Removed route extension for `mediagoblin.confirm` * Created `delete_media_files` which deletes all media files on the public_store when the entry is deleted * Created a new decorator to check if a user has the permission to delete an entry.
* I think confirm_delete deserves a url like /confirm-delete/ rather than ↵Christopher Allan Webber2011-08-291-2/+3
| | | | | | /confirm/ Adjusting appropriately.
* Merge remote branch 'remotes/jwandborg/f403_ability_to_delete'Christopher Allan Webber2011-08-281-0/+2
|\ | | | | | | | | | | | | Conflicts: mediagoblin/edit/views.py mediagoblin/templates/mediagoblin/user_pages/media.html mediagoblin/user_pages/routing.py
| * + 'confirm' section for confirmation dialoguesMark Holmquist2011-08-221-0/+2
| | | | | | | | | | + implemented delete functionality * fixed several instances of 'must be an instance of unicode, not str'
* | Merge branch 'master' into jwandborg-f482_media_attachmentsChristopher Allan Webber2011-08-221-1/+5
|\| | | | | | | | | | | | | | | | | Conflicts: mediagoblin/config_spec.ini mediagoblin/edit/forms.py mediagoblin/edit/views.py mediagoblin/submit/views.py mediagoblin/templates/mediagoblin/user_pages/media.html
| * Processing panel viewChristopher Allan Webber2011-08-141-1/+5
| | | | | | | | Now you can view your failed and in-process media items!
* | Feature #482 - Media attachments -Joar Wandborg2011-08-221-1/+4
|/ | | | | * Moved attachment uploading to separate view * Support for multiple attachments!
* Issue #431 - Prevent comment link expiry - Added functionality for comment ↵Joar Wandborg2011-07-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | linking * `media.html` * Changed comment textarea handle from `comment` => `field_comment` * Active comment is hilighted with the CSS class name `comment_active` and also with the hyperlink anchor #comment * Changed media.html so that pagination always uses Route('mediagoblin.user_pages.media_home') as base_url * `user_pages/forms.py` * Renamed MediaComment form field `comment` => `field_comment` * `user_pages/routing.py` * Added route for `/u/joar/m/123..456/c/234..567/`, points to `media_home` * `user_pages/views.py` * `media_home` now checks if the request contains a comment id parameter then acts accordingly with pagination whether to call it with a `jump_to_id` or not. * `media_post_comment` - Updated MediaCommentForm field name `comment` => `field_comment` * `util.py` * `redirect` now supports querystring arguments. - NOT USED (should we keep it? I think so, it might be useful, sometime [don't call me a code hoarder]). * `Pagination.__init__` now accepts one further argument, the `jump_to_id`. It assist the comment linking functionality in finding and returning the proper page for a comment. This feature will work for all kinds of objects. It might not be optimal, but it is well functional :)
* Issue #362 - Added a route to MediaComment POST handlerJoar Wandborg2011-06-291-1/+4
|
* adds routing.py and view.py changescfdv2011-06-161-0/+2
|
* Mount media editing under /u/{username}/m/{media}/edit/Christopher Allan Webber2011-06-041-0/+2
|
* modified atomfeed feature, corrected spacing, url generation, routing idBernhard Keller2011-05-231-1/+3
|
* MediaEntry slugs usable in URLs, & decorator that grabs media from the requestChristopher Allan Webber2011-05-201-1/+1
|
* Removing the raw string-nessChristopher Allan Webber2011-05-131-1/+1
|
* URLs should end in trailing slashes, or slash redirection doesn't workChristopher Allan Webber2011-05-111-3/+3
|
* Implement simple media detail pageSebastian Spaeth2011-05-101-0/+24
This patch creates a "homepage" for each media. The URL is /u/<username>/m/<objID>. On it we display the media and some details. It is ugly and lacking some stuff but it works. The only thing left to do is to throw an 404 error if the <username> and the media uploader don't correspond. - Also create a user "home page" while at it. It is merely a place holder for now though. - Link from the entries on the homepage, to the media pages, so we actually find them. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>