Hi,

I have a browser view using memoize.view on some method to make simple
caching.


Here is the trace :

  File
"/home/jmf/.buildout/installed_eggs/plone.memoize-1.1b1-py2.6.egg/plone/memoize/volatile.py",
line 265, in replacement
    key = get_key(fun, *args, **kwargs)
  File
"/home/jmf/workspace/gallery.buildout/src/collective.gallery/collective/gallery/cache.py",
line 12, in cache_key
    width = str(self.width)
  File
"/home/jmf/workspace/gallery.buildout/src/collective.gallery/collective/gallery/core.py",
line 22, in width
    return self.pp.site_properties.gallery_width
  File
"/home/jmf/.buildout/installed_eggs/plone.memoize-1.1b1-py2.6.egg/plone/memoize/view.py",
line 53, in memogetter
    annotations = IAnnotations(request)
TypeError: ('Could not adapt', <zope.publisher.browser.TestRequest instance
URL=http://127.0.0.1>, <InterfaceClass
zope.annotation.interfaces.IAnnotations>)


Any pointer to fix this ? I don't know what zcml to include to make request
support annotation process.

Regards,
JeanMIchel FRANCOIS

-----
Jean-Michel François aka toutpt
http://toutpt.wordpress.com
http://twitter.com/toutpt

-- 
View this message in context: 
http://plone.293351.n2.nabble.com/test-a-browserview-that-use-plone-memoize-view-tp4975137p4975137.html
Sent from the Product Developers mailing list archive at Nabble.com.
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to