To avoid this, I modified 2 lines in the application.py source:
class RoutesApplication(BaseApplication):
"""
Application that uses Routes (http://routes.groovie.org/) to
dispatch URLs.
"""
__metaclass__ = RoutesMapperClass
def __init__(self, environ, start_response):
def create_request(e, s, c):
return RoutesRequest(self, e, s, c)
super(RoutesApplication, self).__init__(environ,
start_response,
create_request)
def process_request(self):
path = self.request.environ.get('PATH_INFO') or '/'
match = self._routes_mapper.match(path)
if match is None:
raise PageNotFound()
handler = self._routes_controllers[match['controller']]
app = handler.im_class()
app.request = self.request
if match['action'] == 'index':
del match['action']
del match['controller']
return handler(app, **match)
Bye,
Massimo
bye,
Max