From 6b9be19e4d3f2b60296e44d3f304a75298a2debd Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 9 Aug 2009 05:26:06 +0000 Subject: - Change urldispatch internals: Route object is now constructed using a path, a name, and a factory instead of a name, a matcher, a generator, and a factory. --- repoze/bfg/zcml.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'repoze/bfg/zcml.py') diff --git a/repoze/bfg/zcml.py b/repoze/bfg/zcml.py index 0ce38997d..7c1a74ec2 100644 --- a/repoze/bfg/zcml.py +++ b/repoze/bfg/zcml.py @@ -331,12 +331,12 @@ def route(_context, name, path, view=None, view_for=None, permission=None, _context.action( discriminator = ('route', name, view_for, request_type), callable = connect_route, - args = (name, path, factory), + args = (path, name, factory), ) -def connect_route(name, path, factory): +def connect_route(path, name, factory): mapper = getUtility(IRoutesMapper) - mapper.connect(name, path, factory) + mapper.connect(path, name, factory) class IViewDirective(Interface): for_ = GlobalObject( -- cgit v1.2.3