Mercurial > libervia-web
changeset 882:d3d2b97aa12c
blog (atom): removed hard ATOM_MAX_ITEMS value as it need to be used with MAM, may come back in the future
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 09 Mar 2016 20:40:25 +0100 |
parents | 6bdee34fa2f4 |
children | 74be6217d913 |
files | src/server/blog.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/server/blog.py Wed Mar 09 18:38:52 2016 +0100 +++ b/src/server/blog.py Wed Mar 09 20:40:25 2016 +0100 @@ -41,7 +41,6 @@ from libervia.server.constants import Const as C NS_ATOM = 'http://www.w3.org/2005/Atom' -ATOM_MAX_ITEMS = 20 PARAMS_TO_GET = (C.STATIC_BLOG_PARAM_TITLE, C.STATIC_BLOG_PARAM_BANNER, C.STATIC_BLOG_PARAM_KEYWORDS, C.STATIC_BLOG_PARAM_DESCRIPTION) re_strip_empty_div = re.compile(r"<div ?/>|<div> *?</div>") @@ -193,7 +192,7 @@ if request.atom: request.extra_dict.update(request.mam_extra) - self.getAtom(pub_jid, ATOM_MAX_ITEMS, request.extra_dict, request.extra_comments_dict, request, profile) + self.getAtom(pub_jid, max_items, request.extra_dict, request.extra_comments_dict, request, profile) elif request.item_id: # we can't merge mam_extra now because we'll use item_ids