From c97fab045d438cfda00c0155eedb78e508bca49d Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 6 Aug 2008 03:40:19 +0000 Subject: Fix. --- repoze/bfg/urldispatch.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'repoze') diff --git a/repoze/bfg/urldispatch.py b/repoze/bfg/urldispatch.py index 434a2aa57..b2711d5cb 100644 --- a/repoze/bfg/urldispatch.py +++ b/repoze/bfg/urldispatch.py @@ -22,12 +22,11 @@ class RoutesMapper(object): application in such a way that the `Routes `_ engine has the 'first crack' at resolving the current request URL to a repoze.bfg view. - If the ``RoutesModelTraverser`` is configured in your - application's configure.zcml, any view that claims it is 'for' the - interface ``repoze.bfg.interfaces.IRoutesContext`` will be called - if its *name* matches the Routes 'controller' name for the match. - It will be passed a context object that has attributes that match - the Routes match arguments dictionary keys. If no Routes route + Any view that claims it is 'for' the interface + ``repoze.bfg.interfaces.IRoutesContext`` will be called if its + *name* matches the Routes 'controller' name for the match. It + will be passed a context object that has attributes that match the + Routes match arguments dictionary keys. If no Routes route matches the current request, the 'fallback' get_root is called.""" def __init__(self, get_root): self.get_root = get_root @@ -68,7 +67,7 @@ class RoutesMapper(object): *Mapper* object. One difference exists: if the ``context_factory`` is passed in with a value as a keyword argument, this callable will be called when a model object - representing the ``context``` for the request needs to be + representing the ``context`` for the request needs to be constructed. It will be called with the (all-keyword) arguments supplied by the Routes mapper's ``match`` method for this route, and should return an instance of a class. If -- cgit v1.2.3