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 enor

Re: [Zope-CMF] caching policy manager

2006-09-15 Thread Dieter Maurer
Dmitry S. Makovey wrote at 2006-9-15 09:04 -0600: > ... >> I have defined CMF-aware ZODB object types. The one for "File" >> looks like this: >> >> # DM 2005-11-02: added >> """ CMF 'File' variant (CMF Cache Policy Manager aware)""" >...skip... > >Dieter, are you saying that it's fixed somwhere in

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 doe

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 mu

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 w

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 Stefan H. Holek
Oh yes. I always forget that I run PolicyHTTPCacheManager ;-) http://dev.plone.org/collective/browser/CacheFu/trunk/ PolicyHTTPCacheManager Stefan On 13. Sep 2006, at 10:24, Jens Vagelpohl wrote: On 13 Sep 2006, at 10:04, Stefan H. Holek wrote: You don't want to cache views for Files and

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 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: python:content.por

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". T

[Zope-CMF] caching policy manager

2006-09-12 Thread Dmitry S. Makovey
Playing with CPM I've discovered that if I put a policy like: id: Files Predicate: python:content.portal_type == "File" Mod. time: content/modified Max age: 1 with all "noXXX" checked, I have weird behaviour: whenever I request '/file_view' method on file objects - everything works as expected