[Zope-CMF] Re: [Warning] Danger from Zope caching, especially the CMF Caching Policy Manager

2006-12-18 Thread Miles Waller
Jens Vagelpohl wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 17 Dec 2006, at 18:52, Dieter Maurer wrote: The description indicates in what direction the CPM should get fixed: * If the response already provides cache control, the CPM should not override it, as it is likely

[Zope-CMF] GS content profiles

2006-12-07 Thread Miles Waller
Hi, What is the correct pattern for FTP representations of a CMF content type? I am trying to create a content export/import mechanism for some custom objects, but I've found a few different patterns to follow: First of all, all content tries to use it's WebDAV representation. This is

[Zope-CMF] CachingPolicyManager

2006-10-11 Thread Miles Waller
Hi, I'm trying to investigate a problem where the CPM is adding cache headers to a response for the wrong object. I can reproduce it in plain CMF as follows: 1. Add two filesystem zpts: output_page_1: == html head titletest page/title /head h1Here is the title/h1 x

[Zope-CMF] Re: CachingPolicyManager

2006-10-11 Thread Miles Waller
My question is, does this count as a bug? I'm not sure this can be called a bug. It is true (and perfectly normal) that rendering a filesystem page template will always call the CPM. You're rendering both here. Since output_page_2 is rendered last as it's calles from output_page_1 the

[Zope-CMF] Re: sample_content profile in CMF1.6

2006-09-06 Thread Miles Waller
- the 1.6 branch seems just to have had exportimport.zcml deleted AFAICT. Is that preferable to a patch in getting it sorted out? Miles Jens Vagelpohl wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5 Sep 2006, at 19:17, Miles Waller wrote: Hi, I just went to use the sample_content

[Zope-CMF] Re: strange problem fixed by _owner

2006-08-14 Thread Miles Waller
Dieter Maurer wrote: Miles Waller wrote at 2006-8-11 16:17 +0100: ... I stepped through the code and somehow it thinks the user 'admin' is the owner. I think this is being acquired from somewhere (not sure where). I added the line _owner = None at the class level in CMFCore.DTMLMethod

[Zope-CMF] types tool and aliases

2006-07-17 Thread Miles Waller
Hi, I have a question about aliases in the types tool that I'm hoping some can answer pretty easily. In the management screen, there's a line which says: For backwards compatibility there is also a '(Default)' method: Calls index_html or __call__, depending on the class For some old

[Zope-CMF] Re: types tool and aliases

2006-07-17 Thread Miles Waller
yuppie wrote: Hi Miles! Miles Waller wrote: I have a question about aliases in the types tool that I'm hoping some can answer pretty easily. In the management screen, there's a line which says: For backwards compatibility there is also a '(Default)' method: Calls index_html

[Zope-CMF] Re: caching policy queries

2006-07-06 Thread Miles Waller
[EMAIL PROTECTED] wrote: Miles Waller wrote at 2006-7-5 13:32 +0100: ... 1. When 304 responses are enabled, if the function entered for modification time or etag return anything other than a string, the comparison always fails, and so the objects do not validate. That does