[Zope-CMF] [dev] refactoring listFilteredActionsFor: 2 questions
Dieter Maurer
dieter at handshake.de
Fri Nov 21 17:12:14 EST 2003
Yuppie wrote at 2003-11-20 18:23 +0100:
> ...
> a) caching ExpressionContext
> ============================
>
> I still don't like to pass ExpressionContext around as argument.
> ( <http://mail.zope.org/pipermail/zope-cmf/2003-November/019820.html> )
>
> So I experimented with storing the ExpressionContext in _v_skindata,
> based on the assumption that
> i) _v_skindata is always available in CMF
> ii) _v_skindata is new for each request
>
> It seems to work pretty well, but I'm not sure that's a sane approach
> and there might be better solutions. Any ideas?
Be aware that the same request may call "listFilteredActionsFor"
(or derivatives) for different objects...
--
Dieter
More information about the Zope-CMF
mailing list