# HG changeset patch # User Goffi # Date 1457552425 -3600 # Node ID d3d2b97aa12c691e2bd6ee5b5e7696910a229e90 # Parent 6bdee34fa2f44747b90367932d05d73cb6574e9f blog (atom): removed hard ATOM_MAX_ITEMS value as it need to be used with MAM, may come back in the future diff -r 6bdee34fa2f4 -r d3d2b97aa12c src/server/blog.py --- 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"
|
*?
") @@ -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