[Twisted-web] Trivial diff -- automatically adapt renderers
Christopher Armstrong
radeex at gmail.com
Thu Oct 7 20:44:53 MDT 2004
(or maybe to change Context.__conform__ to always try to adapt the
found object to the interface?)
On Fri, 8 Oct 2004 13:37:16 +1100, Christopher Armstrong
<radeex at gmail.com> wrote:
> 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
>
--
Twisted | Christopher Armstrong: International Man of Twistery
Radix | Release Manager, Twisted Project
---------+ http://radix.twistedmatrix.com
More information about the Twisted-web
mailing list