[Zope-CMF] Re: [dev] refactoring listFilteredActionsFor: 2 questions

Yuppie schubbe at web.de
Fri Nov 21 09:22:46 EST 2003


Chris McDonough wrote:
> On Thu, 2003-11-20 at 12:23, Yuppie wrote:
> 
>>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?
> 
> 
> You might be able to use the REQUEST._hold method to invoke a callback
> when the request dies to invalidate a _v_ cache on the actions tool
> itself (instead of depending on the skins implementation to do it for
> you...):

Would there be anything wrong with storing the ExpressionContext in 
REQUEST? Seems to be much simpler than a _v_ cache.

TIA,
	Yuppie





More information about the Zope-CMF mailing list