[z3-five] Adaptation in untrusted code

Chris Withers chris at simplistix.co.uk
Fri Nov 17 09:36:02 CET 2006


Maciej Wisniowski wrote:
> from Products.RAMCacheManagerPlus.interfaces import ICacheablePlus
> ICacheablePlus(context.secScript).invalidate(
>        keywords_req={'AUTHENTICATED_USER':request.AUTHENTICATED_USER}
>        partial = 1)
> 
> where ICacheablePlus is my adapter and
> context.secScript is Script(Python) with caching enabled.

I got this working without a problem, it's just that it looks butt ugly 
in a page template ;-)

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the z3-five mailing list