[Zope-CMF] caching policy queries

2006-07-05 Thread Miles Waller
Hi, I have a couple of queries about the caching policy manager. Can anyone help? 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. This is because

[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 val

[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 type

[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:

[Zope-CMF] strange problem fixed by _owner

2006-08-11 Thread Miles Waller
Hi, As part of a workflow, I evaluate whether the user has the 'Modify portal content' permission as follows: from CMFCore.permissions import ModifyPortalContent from CMFCore.utils import _checkPermission can_edit = _checkPermission(ModifyPortalContent, ob) where ob is the object I am talkin

[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.

[Zope-CMF] sample_content profile in CMF1.6

2006-09-05 Thread Miles Waller
Hi, I just went to use the sample_content profile from CMF1.6 but ... it's not there! It is registered in __init__.py and appears in the add site list, but there's nothing no sample_content in the profiles directory. I don't seem to get an error, but I might be wrong about that. Before I co

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

2006-09-06 Thread Miles Waller
where - 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_co

[Zope-CMF] Re: Tools as local utilities

2006-09-13 Thread Miles Waller
Jens Vagelpohl wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10 Sep 2006, at 20:09, Martin Aspeli wrote: Just out of curiosity, which dependencies does Plone 3.0 have that require Zope 2.10? Or was it some papal edict to use 2.10? 2.10 really is lovely, because Zope 3.3 is lovel

[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: == test page Here is the title output_page_2: == Here i

[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 rul

[Zope-CMF] Re: CachingPolicyManager

2006-10-13 Thread Miles Waller
Dieter Maurer wrote: Miles Waller wrote at 2006-10-11 16:34 +0100: ... My question is, does this count as a bug? I would say "yes"... Please file a bug report to the CMF collector. Done (incl. fix + tests): http://www.zope.org/Collecto

[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 good

[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 tha

[Zope-CMF] CatalogTool

2007-01-22 Thread Miles Waller
Hi, I was looking at the catalog tool the other day and had a couple of questions: - why does the catalog not attempt to use a DateRange index for the effective/expires queries, if this index is available and no dates are specified? - is the 'access future content' permission used to con