[Twisted-web] Trivial diff -- automatically adapt renderers
Christopher Armstrong
radeex at gmail.com
Thu Oct 7 20:37:16 MDT 2004
On Thu, 07 Oct 2004 19:01:41 -0700, Cory Dodt
<corydodt at twistedmatrix.com> wrote:
> # ===> MyWrapper instance has no attribute 'renderer'
> ...
> Index: nevow/flat/flatstan.py
> ===================================================================
> --- nevow/flat/flatstan.py (revision 695)
> +++ nevow/flat/flatstan.py (working copy)
> @@ -204,7 +204,7 @@
> if context.precompile:
> return original
>
> - rendererFactory = context.locate(IRendererFactory)
> + rendererFactory = IRendererFactory(context.locate(IRendererFactory))
It seems the best way to fix this ought to be fixing whatever does
context.remember(IRendererFactory,
somethingThatDoesntProvideRendererFactoryDirectly)
--
Twisted | Christopher Armstrong: International Man of Twistery
Radix | Release Manager, Twisted Project
---------+ http://radix.twistedmatrix.com
More information about the Twisted-web
mailing list