srittau / rouver

Python 3 microframework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RouteHandlers should be regular WSGIApplications

srittau opened this issue · comments

Remove type RouteHandler. RouteDescription should instead take a WSGIApplication as third argument. Path arguments will be added to a WSGI environment variable called rouver.path_args.

RouteHandlerBase will act as a regular WSGI application. But it will try to read rouver.path_args from the WSGI environment, if it exists.