Mercurial > hg > TagInTheMiddle
changeset 16:5f492a6fbdd1
add note about URL structure
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 24 May 2010 07:28:39 -0700 |
parents | 1701e5b0b0eb |
children | c85d42296c06 |
files | taginthemiddle/handlers.py |
diffstat | 1 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/taginthemiddle/handlers.py Wed May 05 22:47:46 2010 -0700 +++ b/taginthemiddle/handlers.py Mon May 24 07:28:39 2010 -0700 @@ -85,7 +85,21 @@ class ViewTags(GenshiHandler): - # TODO: RSS + """ + View for tags on a resource; for app.tags_url == 'tags': + + /<resource>/tags/mozilla : + all paths under /<resource> tagged with 'mozilla' + + /<resource>/tags/mozilla+workflow : + all paths under /<resource> tagged with 'mozilla' and 'workflow' + (or should it be /<resource>/tags/mozilla/workflow , which would be + identical to /<resource>/tags/workflow/mozilla ?) + + Also handles RSS: + /<resource>/tags/mozilla?format=rss + """ + template = 'tags.html' methods = set(['GET']) @@ -103,6 +117,7 @@ @classmethod def match(cls, app, request): + # check the method if request.method not in cls.methods: return None