diff options
| author | Chris McDonough <chrism@agendaless.com> | 2008-08-06 03:40:19 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2008-08-06 03:40:19 +0000 |
| commit | c97fab045d438cfda00c0155eedb78e508bca49d (patch) | |
| tree | 3997215c09d5d40298510f3eee06c701c6b7e589 /repoze | |
| parent | 22904fd86a964a6be124e1384468f5a695bfe124 (diff) | |
| download | pyramid-c97fab045d438cfda00c0155eedb78e508bca49d.tar.gz pyramid-c97fab045d438cfda00c0155eedb78e508bca49d.tar.bz2 pyramid-c97fab045d438cfda00c0155eedb78e508bca49d.zip | |
Fix.
Diffstat (limited to 'repoze')
| -rw-r--r-- | repoze/bfg/urldispatch.py | 13 |
1 files changed, 6 insertions, 7 deletions
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 <http://routes.groovie.org/index.html>`_ 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 |
