[Twisted-web] Trivial diff -- automatically adapt renderers
dp at ulaluma.com
Mon Oct 11 11:14:16 MDT 2004
On Oct 7, 2004, at 7:44 PM, Christopher Armstrong wrote:
> (or maybe to change Context.__conform__ to always try to adapt the
> found object to the interface?)
This sounds like the right way to do it, except done in locate() which
is called by __conform__ (which is still named getComponent IIRC)
This will not only fix this problem but have the added benefit of
preventing any other issues of this sort from cropping up.
However, it may cause pretty massive slowdown. Might as well just do it
though, since it is obviously semantically correct, and optimizations
can be performed in other areas to make up for it.
More information about the Twisted-web