[Zope3-dev] A generic Decorator class

Steve Alexander steve@cat-box.net
Sun, 17 Feb 2002 18:51:46 +0000


Steve Alexander wrote:
>
> 3: I don't know what else expects to use getContext on a view.
> Actually, I'm surprised that getContext() isn't defined in an interface 
> somewhere. It seems to be an informal standard for getting views to 
> communicate.
> However, it only seems to be used to communicate with presentation-wards 
> components, so that's ok... oh, except in the case of the ZMI. I think 
> that aspect of the ZMI is broken at the moment anyway.

I've just found Zope.ContextWrapper !

Things work nicely when I wrap the decorator in the context of the 
original context :-)

--
Steve Alexander