1. Mike Orr
  2. pyramid_sqla

Commits

Chris McDonough  committed f022d03

Use a keyword arg for view= as add_route arg ordering is not promised stable.

  • Participants
  • Parent commits 068b99a
  • Branches default

Comments (0)

Files changed (1)

File pyramid_sqla/static.py

View file
  • Ignore whitespace
     custom_predicates = add_route_args.pop("custom_predicates", [])
     custom_predicates = list(custom_predicates)
     custom_predicates.insert(0, pred)
-    config.add_route(name, pattern, view, 
-        custom_predicates=custom_predicates, **add_route_args)
+    config.add_route(name, pattern, view=view, 
+                     custom_predicates=custom_predicates, **add_route_args)
 
 #### Private stuff