Commits

Anonymous committed 4045171

Support page param in route path when using Routes explicit mode.

Comments (0)

Files changed (2)

 1.3 (unreleased)
 ----------------
 
-*No changes yet.*
+* webhelpers.paginate:
+
+  - Support page parameter in the route path (e.g., "/help/page5") when using
+    Routes explicit mode without a URL generator.
 
 1.2 (2010-08-18)
 ----------------

webhelpers/paginate.py

                     if config.mapper.explicit:
                         if hasattr(config, 'mapper_dict'):
                             for k, v in config.mapper_dict.items():
-                                link_params[k] = v
+                                if k != self.page_param:
+                                    link_params[k] = v
 
         # Create the URL to load a certain page
         link_url = url_generator(**link_params)