diff src/common/constants.py @ 828:0c824ebe9d87

server (blog): implemented tag/category filtering: - the tag=[quoted tag] query is used to use the filtering - MAM data use request.mam_extra instead of request.extra_dict to avoid using it with item_ids - getDefaultQueryData function is used to keep query data (link MAM category filtering) between links - filtering is help when displaying a blog post, this way it's easy to navigate between thematic posts - filtering can be removed by clicking on user avatar/nick (with default theme)
author Goffi <goffi@goffi.org>
date Fri, 08 Jan 2016 19:58:08 +0100
parents 027139763511
children 5cefc6ab302f
line wrap: on
line diff
--- a/src/common/constants.py	Fri Jan 08 19:53:51 2016 +0100
+++ b/src/common/constants.py	Fri Jan 08 19:58:08 2016 +0100
@@ -53,3 +53,6 @@
     DEFAULT_AVATAR_URL = os.path.join(MEDIA_DIR, "misc", DEFAULT_AVATAR_FILE)
     EMPTY_AVATAR_FILE = "empty_avatar"
     EMPTY_AVATAR_URL = os.path.join(MEDIA_DIR, "misc", EMPTY_AVATAR_FILE)
+
+    # blog
+    MAM_FILTER_CATEGORY = 'http://salut-a-toi.org/protocols/mam_filter_category'