it was already done that way. the issue was comming from an other  
method also cached but failling on an attribute error. the trace was  
not helpful


Le 28 avr. 2010 à 17:36, Damien Baty <[email protected]> a écrit :

> Hello Jean-Michel,
>
> On Wed, Apr 28, 2010 at 5:31 PM, toutpt <[email protected]> wrote:
>>
>> I have a browser view using memoize.view on some method to make  
>> simple
>> caching.
>>
>> TypeError: ('Could not adapt', <zope.publisher.browser.TestRequest  
>> instance
> URL=http://127.0.0.1>, <InterfaceClass
> zope.annotation.interfaces.IAnnotations>)
>
> The following may help:
>
> from zope.annotation.interfaces import IAttributeAnnotatable
> from zope.interface import directlyProvides
> from zope.publisher.browser import TestRequest
>
> request = TestRequest()
> directlyProvides(request, IAttributeAnnotatable)
>
>
> -- 
> Damien Baty
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to