Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-26 Thread Chris Withers
Tres Seaver wrote: Where and how are they implemented? Products.CMFCore.CachingPolicyManager.createCPContext. Cool, thanks :-) Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML en

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-25 Thread Tres Seaver
On Thu, 2003-09-25 at 06:41, Chris Withers wrote: > Tres Seaver wrote: > > I have wanted to add a binding to the TALES namespace to allow access to > > the "skin object" for some time: the current values in the namespace > > are: > > > > 'content' -- the skin object's aq_parent > > > > '

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-25 Thread Chris Withers
Tres Seaver wrote: I have wanted to add a binding to the TALES namespace to allow access to the "skin object" for some time: the current values in the namespace are: 'content' -- the skin object's aq_parent 'view' -- the skin object's name (a really bad choice for the key) 'keywords'

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-18 Thread seb bacon
Fred Yankowski wrote: I use Squid as an HTTP accelerator in front of ZServer. What do last-modified headers have to do with this discussion? I thought that was how this thread started. I must have mis-read something. I use a standard HTTP Cache Manager for all our caching needs - I have yet t

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-18 Thread Fred Yankowski
On Thu, Sep 18, 2003 at 11:09:57AM +0100, seb bacon wrote: > I use squid, which doesn't require last-modified headers. I guess > that's not an option for you, or you'd probably already be using it ;-) > But in any case, I don't see why Shane's suggestion of uncommenting > the last-modified lin

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-18 Thread seb bacon
Fred Yankowski wrote: That makes sense. Is there a way to do that with the CMF 1.4 version of the "CPM"? One could, I suppose, test the names of the FSDV folders in CPM predicates, but that seems a royal PITA. That's why I'm making do with one-size-fits-all CPM policy for now. Here's how I handl

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-17 Thread Tres Seaver
On Wed, 2003-09-17 at 19:10, Fred Yankowski wrote: > On Wed, Sep 17, 2003 at 06:25:47PM -0400, Tres Seaver wrote: > > I have wanted to add a binding to the TALES namespace to allow access to > > the "skin object" for some time: the current values in the namespace > > are: > > > > 'content' --

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-17 Thread Fred Yankowski
On Wed, Sep 17, 2003 at 06:25:47PM -0400, Tres Seaver wrote: > I have wanted to add a binding to the TALES namespace to allow access to > the "skin object" for some time: the current values in the namespace > are: > > 'content' -- the skin object's aq_parent That definition matches the reali

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-17 Thread Tres Seaver
On Wed, 2003-09-17 at 17:38, Fred Yankowski wrote: > My original question concerned a detail of how the CMF Caching Policy > Manager interprets the 'Predicate' of a caching policy: it seems to > interpret any 'content' object in that predicate as a reference to the > *parent* object of the object

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-17 Thread Fred Yankowski
On Wed, Sep 17, 2003 at 10:03:15AM -0400, Tres Seaver wrote: > On Wed, 2003-09-17 at 07:26, Chris Withers wrote: > > Fred Yankowski wrote: > > >>> > > >>> python: content.meta_type == 'Filesystem Image' > > >> > > >>Do you have any content with this metatype? > > > > > > There is nothing in the po

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-17 Thread Tres Seaver
On Wed, 2003-09-17 at 07:26, Chris Withers wrote: > Fred Yankowski wrote: > >>> > >>> python: content.meta_type == 'Filesystem Image' > >> > >>Do you have any content with this metatype? > > > > There is nothing in the portal_catalog with that meta_type. But there > > are lots of objects with t

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-17 Thread Chris Withers
Fred Yankowski wrote: python: content.meta_type == 'Filesystem Image' Do you have any content with this metatype? There is nothing in the portal_catalog with that meta_type. But there are lots of objects with that type: most everything in portal_skins/plone_images/, for example. Oh, I getcha now

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-15 Thread Fred Yankowski
On Mon, Sep 15, 2003 at 01:14:51PM +0100, Chris Withers wrote: > Fred Yankowski wrote: > >But I can't see how to create more restrictive Predicate. My initial > >attempt was to set Predicate like so: > > > > python: content.meta_type == 'Filesystem Image' > > Do you have any content with this

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-15 Thread Chris Withers
Fred Yankowski wrote: But I can't see how to create more restrictive Predicate. My initial attempt was to set Predicate like so: python: content.meta_type == 'Filesystem Image' Do you have any content with this metatype? Try this script: for brain in context.portal_catalog(): obj = brain.get

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-12 Thread Fred Yankowski
On Fri, Sep 12, 2003 at 10:13:44AM -0400, Tres Seaver wrote: > The CMF's CachingPolicyManger, which is specialized for caching skin > methods, already has such customizations: it allows spelling the > 'Last-Modified' header using a TALES expression, and also has checkboxes > for the 'no-cache', 'n

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-12 Thread Tres Seaver
On Fri, 2003-09-12 at 09:51, Shane Hathaway wrote: > Germer, Carsten wrote: > > Thanks Bjorn, now I remember the last-modified issue. > > As I remember it, someone said that the line is commented out for a reason > > not known... that's why I didn't change it :) > > It has always been commented ou

Re: [Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-12 Thread Shane Hathaway
Germer, Carsten wrote: Thanks Bjorn, now I remember the last-modified issue. As I remember it, someone said that the line is commented out for a reason not known... that's why I didn't change it :) It has always been commented out in CVS. That may have been a mistake--it may have been a temporary

[Zope-dev] AW: [Summary] Caching prob with AHCM and headers

2003-09-12 Thread Germer, Carsten
Thanks Bjorn, now I remember the last-modified issue. As I remember it, someone said that the line is commented out for a reason not known... that's why I didn't change it :) /Carsten > -Ursprüngliche Nachricht- > Von: Bjorn Stabell [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 12. Septe