summaryrefslogtreecommitdiff
path: root/repoze/bfg/router.py
diff options
context:
space:
mode:
Diffstat (limited to 'repoze/bfg/router.py')
-rw-r--r--repoze/bfg/router.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/repoze/bfg/router.py b/repoze/bfg/router.py
index 12d3d4ac4..68e85d50c 100644
--- a/repoze/bfg/router.py
+++ b/repoze/bfg/router.py
@@ -2,14 +2,14 @@ from zope.component import getAdapter
from repoze.bfg.interfaces import IWSGIApplication
class Router:
- def __init__(self, app, root_finder, policy):
+ def __init__(self, app, root_policy, traversal_policy):
self.app = app
- self.root_finder = root_finder
- self.policy = policy
+ self.root_policy = root_policy
+ self.traversal_policy = traversal_policy
def __call__(self, environ, start_response):
- root = self.root_finder(environ)
- context, name, subpath = self.policy(root, environ)
+ root = self.root_policy(environ)
+ context, name, subpath = self.traversal_policy(root, environ)
app = getAdapter(context, IWSGIApplication, name)
environ['repoze.bfg.context'] = context
environ['repoze.bfg.subpath'] = subpath