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
