Re: [Zope-CMF] caching policy manager

2006-09-15 Thread Dmitry S. Makovey
On Wednesday 13 September 2006 01:15, Jens Vagelpohl wrote: If you could, please file a bug report at http://www.zope.org/ Collectors/CMF/. All that needs to be done is to override index_html (which I believe was never done because the implementation in OFS.File is quite a beast - it was much

Re: [Zope-CMF] caching policy manager

2006-09-15 Thread Dmitry S. Makovey
On Wednesday 13 September 2006 11:32, Dieter Maurer wrote: Jens Vagelpohl wrote at 2006-9-13 09:15 +0200: ... It is a long-standing bug that the CMFDefault File index_html (and download, which is obsolete in newer CMF versions) simply defers to index_html from OFS.File. That one doesn't

Re: [Zope-CMF] caching policy manager

2006-09-15 Thread Dmitry S. Makovey
On Friday 15 September 2006 11:27, Dieter Maurer wrote: Dieter, are you saying that it's fixed somwhere in SVN or is it in your private repository? In our private repository. would you care to attach your patch to http://www.zope.org/Collectors/CMF/454 ? I believe it will be enormously

Re: [Zope-CMF] caching policy manager

2006-09-13 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13 Sep 2006, at 01:30, Dmitry S. Makovey wrote: whenever I request '/file_view' method on file objects - everything works as expected, as soon as I use '/download' all the settings are discarded by CPM. Well, the settings are not discarded.

Re: [Zope-CMF] caching policy manager

2006-09-13 Thread Stefan H. Holek
You don't want to cache views for Files and Images. I use this for predicate: python: not view and object.portal_type=='File' Stefan On 13. Sep 2006, at 01:30, Dmitry S. Makovey wrote: Playing with CPM I've discovered that if I put a policy like: id: Files Predicate:

Re: [Zope-CMF] caching policy manager

2006-09-13 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13 Sep 2006, at 10:04, Stefan H. Holek wrote: You don't want to cache views for Files and Images. I use this for predicate: python: not view and object.portal_type=='File' I don't think this will help anything. The CPM never even fires,

Re: [Zope-CMF] caching policy manager

2006-09-13 Thread Sidnei da Silva
On Wed, Sep 13, 2006 at 09:15:14AM +0200, Jens Vagelpohl wrote: | It is a long-standing bug that the CMFDefault File index_html (and | download, which is obsolete in newer CMF versions) simply defers to | index_html from OFS.File. That one doesn't know anything about Cache | Policy Managers,

Re: [Zope-CMF] caching policy manager

2006-09-13 Thread Dieter Maurer
Jens Vagelpohl wrote at 2006-9-13 09:15 +0200: ... It is a long-standing bug that the CMFDefault File index_html (and download, which is obsolete in newer CMF versions) simply defers to index_html from OFS.File. That one doesn't know anything about Cache Policy Managers, it only deals with