Hi. I am experiencing a issue with Routes configures with Paste as a
composite application. The configuration for the composite application
is as follows:
[composite:main]
use = egg:Paste#urlmap
/ = app1_pipeline
/accounts = app2_pipeline
I have my index route configured as follows:
root_policy.connect('', controller='index')
When navigating to http://localhost:8080/accounts there is no redirect
to add the trailing slash to make this http://localhost:8080/accounts/
As a result, the index route to accounts fails with the traceback I
have attached below. Routes is failing since it is getting empty
PATH_INFO. This may be a bug. I have contacted Ian Bicking who has
advised that urlmap is doing the right thing by not redirecting and
that it ought to be Routes that does this before getting to the app.
I'd appreciate some help in resolving this. I would imagine the
composite app to be a common app configuration. Many thanks.
Regards
David
Traceback (most recent call last):
File "/Users/davidpratt/Development/Buildout/eggs-directory/
PasteScript-1.7-py2.5.egg/paste/script/wsgiserver/__init__.py", line
987, in communicate
req.respond()
File "/Users/davidpratt/Development/Buildout/eggs-directory/
PasteScript-1.7-py2.5.egg/paste/script/wsgiserver/__init__.py", line
543, in respond
self._respond()
File "/Users/davidpratt/Development/Buildout/eggs-directory/
PasteScript-1.7-py2.5.egg/paste/script/wsgiserver/__init__.py", line
555, in _respond
response = self.wsgi_app(self.environ, self.start_response)
File "/Users/davidpratt/Development/Buildout/eggs-directory/
Paste-1.7.2-py2.5.egg/paste/urlmap.py", line 202, in __call__
return app(environ, start_response)
File "/Users/davidpratt/Development/Buildout/eggs-directory/
repoze.who-1.0.7-py2.5.egg/repoze/who/middleware.py", line 105, in
__call__
app_iter = app(environ, wrapper.wrap_start_response)
File "/Users/davidpratt/Development/Buildout/eggs-directory/
repoze.bfg-0.4.2-py2.5.egg/repoze/bfg/router.py", line 48, in __call__
root = self.root_policy(environ)
File "/Users/davidpratt/Development/Buildout/eggs-directory/
repoze.bfg-0.4.2-py2.5.egg/repoze/bfg/urldispatch.py", line 45, in
__call__
args = self.mapper.match(path)
File "/Users/davidpratt/Development/Buildout/eggs-directory/
Routes-1.10.1-py2.5.egg/routes/mapper.py", line 307, in match
raise RoutesException('No URL provided, the minimum URL necessary'
RoutesException: No URL provided, the minimum URL necessary to match
is "/".
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-devel" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-devel?hl=en
-~----------~----~----~----~------~----~------~--~---