Added support for TurboGears?-1.5/CherryPy-3.1, thanks to Dag Brattli.
tw.api.make_middleware() no longer stacks the RegistryManager by default since ususally TW is stacked above a RegistryManager in a larger app.
Warning
This might break your app if you’re not using a RegistryManager in your wsgi pipeline. If this is the case you’ll notice because TW will complain from a ‘paste.registry’ missing key from environ, if this is the case you can fix it by passing stack_registry = True as a keyword argument to tw.api.make_middleware() when configuring TW’s middleware.
Fixed a big which caused resources to be injected twice when calling tw.api.inject_resources() twice.
Greatly simplified tw.core.resource_injector.injector_middleware() thanks to WebOb.
Optimized tw.api.Widget.update_params() logic.
Warning
There’s a slight change in behaviour but it will probably not affect anyone: callable parameters passed to Widget.display() are no longer called automatically since it makes no sense to do so and incurrs in a performance penalty.
Added a headbottom location where tw.api.Resource instances can be injected.