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

Yuppie schubbe at web.de
Fri Nov 21 06:20:56 EST 2003


Hi!


Chris McDonough wrote:
> 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...):
> 
> Here's a helper class for calling a method when an object is deleted:
[...]
> ... or something like that ... ;-)  I think the skins tool does
> something similar to cache lookups within the context of a single
> request.  You should probably sanity check my suggestion against what it
> does (because it works ;-)

Thanks! I'll have a closer look at that.

>>b) call methods with ExpressionContext as argument
>>==================================================
> 
> 
> How would this speed anything up when repeatedly invoking
> listFilteredActionsFor during a single request?  Or are you suggesting
> changing all of the places where listFilteredActionsFor is now called?

That doesn't speed up anything compared to what we have now. But without 
one of these solutions the modularization I'm working on would make 
things even worse.


Cheers,
	Yuppie





More information about the Zope-CMF mailing list