1. Ben Bangert
  2. WebHelpers

Commits

slug...@gmail.com  committed 4045171

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

  • Participants
  • Parent commits c43e68e
  • Branches trunk

Comments (0)

Files changed (2)

File CHANGELOG

View file
  • Ignore whitespace
 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)
 ----------------

File webhelpers/paginate.py

View file
  • Ignore whitespace
                     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)