diff src/server/blog.py @ 705:531eacb82e9f

browser and server sides: renamed max to max_ after sat's changeset 1423 (882e5fabf68c)
author souliane <souliane@mailoo.org>
date Thu, 04 Jun 2015 12:03:45 +0200
parents 5319110a862c
children e9a6cbb924e6
line wrap: on
line diff
--- a/src/server/blog.py	Thu Jun 04 12:39:27 2015 +0200
+++ b/src/server/blog.py	Thu Jun 04 12:03:45 2015 +0200
@@ -163,7 +163,7 @@
                     pass
 
         rsm_ = self.parseURLParams(request, item_id)
-        max_items = int(rsm_['max'])
+        max_items = int(rsm_['max_'])
 
         if atom is not None:
             d.addCallbacks(self.render_atom_feed, self.render_error_blog, [request], None, [request, profile], None)
@@ -186,9 +186,9 @@
         # retrieve RSM request data from URL parameters
         rsm_ = {}
         try:
-            rsm_['max'] = request.args['max'][0]
+            rsm_['max_'] = request.args['max'][0]
         except (ValueError, KeyError):
-            rsm_['max'] = unicode(C.RSM_MAX_ITEMS if item_id else C.RSM_MAX_COMMENTS)
+            rsm_['max_'] = unicode(C.RSM_MAX_ITEMS if item_id else C.RSM_MAX_COMMENTS)
         try:
             rsm_['index'] = request.args['index'][0]
         except (ValueError, KeyError):