Commits

Anonymous committed 0a7d0b2

pyramid 1.1 compliance (deprecation warning)

Comments (0)

Files changed (1)

     custom_predicates = add_route_args.pop("custom_predicates", [])
     custom_predicates = list(custom_predicates)
     custom_predicates.insert(0, pred)
-    config.add_route(name, pattern, view=view, 
-        custom_predicates=custom_predicates, **add_route_args)
+    config.add_route(name, pattern,
+                 custom_predicates=custom_predicates, **add_route_args)
+    config.add_view(view=view, route_name=name)
 
 #### Private stuff