[Zope-CMF] Proposal: Action expression contexts

2009-03-31 Thread Miles
ctory to create the ExpressionContext. In that way I can register different ones as required. Is this a desirable change? Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See https://bugs.launchp

Re: [Zope-CMF] Proposal: MemberDataFactory

2009-03-31 Thread Miles
Hi, This is now checked in on the "miwa-adapterise-memberdata" branch of CMFCore. I'll merge it in next week. Miles Miles wrote: > Hi, > > We have quite a lot of copy-and-paste code here in order to support > using a custom MemberData class for members in partic

Re: [Zope-CMF] IndexableObjectWrapper

2009-03-23 Thread Miles
Hi, Just to confirm that I merged this change into the trunk. http://svn.zope.org/Products.CMFCore/trunk/Products/CMFCore/?rev=98305&view=rev Miles Miles wrote: > Hi, > > Can anyone tell me if it is possible to register an adapter to provide a > different IndexableObjectWr

Re: [Zope-CMF] Proposal: MemberDataFactory

2009-03-18 Thread Miles
f details For sites with integration we use PAS. But for small sites with very simple member requirements, the MemberDataTool generally does most of what's required out of the box. Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests

[Zope-CMF] Proposal: MemberDataFactory

2009-03-18 Thread Miles
is is changed to use a factory registered through the CA to create new MemberData objects, in order that this is pluggable without requiring a custom MemberDataTool. Any thoughts? Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zop

Re: [Zope-CMF] IndexableObjectWrapper

2009-03-18 Thread Miles
Hello > Tres Seaver wrote: >> Miles wrote: >>> >> Can I suggest the following logic: >>> >> >>> >> 1. if the object already implements the IIndexableObject marker >>> >> interface, no wrapping is required; > > If w

Re: [Zope-CMF] IndexableObjectWrapper

2009-03-18 Thread Miles
t. Ok, well this logic is checked in now on the branch, and tests adjusted accordingly. Without any warnings. Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests

Re: [Zope-CMF] IndexableObjectWrapper

2009-03-18 Thread Miles
g; 3. if no adapter is registered, fall back to the existing IndexableObjectWrapper class for BBB. In the case of 3, I would like to issue some deprecation warning or log message to alert that a registration is required in future. As 2.2.0 is not yet released, is it possible/desirabl

Re: [Zope-CMF] IndexableObjectWrapper

2009-03-17 Thread Miles
ummyCatalog test fixture rather than the real catalog, removing the need for the adapter registration and making the tests a bit simpler, IMO. > >> Otherwise, the branch is here and all the tests pass: >> /Products.CMFCore/branches/miwa-catalog-adapter/Products/CM

[Zope-CMF] IndexableObjectWrapper

2009-03-16 Thread Miles
ts/CMFCore Thanks, Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests

Re: [Zope-CMF] IndexableObjectWrapper

2009-03-13 Thread Miles
ti-adapter, and adapting the catalog would appear to be sensible - and as you say, could be generic for zope 2 in future. In some sites, I've derived from catalog so as to use the allowedRolesAndUsers and date filtering behaviours in other catalogs within the portal. So I can definitely se

Re: [Zope-CMF] IndexableObjectWrapper

2009-03-11 Thread Miles
seems cleaner to move it, but I'm not sure on the BBB impact. Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests

Re: [Zope-CMF] IndexableObjectWrapper

2009-03-10 Thread Miles
>> class IndexableObjectWrapper(object): >> >> implements(IIndexableObjectWrapper) >> __providedBy__ = IndexableObjectSpecification() >> >> What does this code actually achieve (I get the implements bit, obviously)?! > > This makes the wrapper transparent, allowing the index to look up

Re: [Zope-CMF] IndexableObjectWrapper

2009-03-10 Thread Miles
TIBILITY: Any catalog implementation that used a different wrapper class would have to subclass the main catalog and override the relevant function, so will be unaffected by the change. Any thoughts? Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://

Re: [Zope-CMF] IndexableObjectWrapper

2009-03-10 Thread Miles
ll write up a short proposal. Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests

[Zope-CMF] IndexableObjectWrapper

2009-03-09 Thread Miles
he wrapper directly using the class, rather than looking it up via the component architecture. Can anyone explain what's going on? I've drawn a blank from googling for examples. Thanks, Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org

[Zope-CMF] zc.formlib and content types

2009-01-26 Thread Miles
hing relevant to this. Thanks for your help, Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests

[Zope-CMF] zc.formlib and content types

2009-01-26 Thread Miles
mplates against it for the various changes. However, with formlib, I can't see how I'd do this. Is there a more elegant solution than just creating 3 separate forms? Thanks for your help, Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope

[Zope-CMF] Re: cmfuid and zope.app.intids

2008-05-30 Thread Miles
Hi, Thanks, that's really useful: I'll take a look at those. - Is this a generally useful thing to do? Yes, but beware of migration. I think this is kinda covered - unless you're alluding to a specific, nasty experience that I am yet to enc

[Zope-CMF] Re: cmfuid and zope.app.intids

2008-05-29 Thread Miles
g CMFUid and the obscurity of the use-case, I think this might be acceptable to just document (and/or provide some sort of adapter-based customisation so it's easy). Does that sound BBB enough? I can't think of anything else that might break but that's what tests are for

[Zope-CMF] cmfuid and zope.app.intids

2008-05-29 Thread Miles
having the concept of uids available a very useful thing. So, my questions are: - Has anyone used zope.app.intids at all, or done anything similar? - Does this sound achievable at all? - Is this a generally useful thing to do? Thanks, Miles __

[Zope-CMF] Re: CMFUid

2008-02-11 Thread Miles
.zcml. Originally, the tools did not do this, so for BBB you also need to check some properties in the annotation tool properties tab (I think): 'assign on add' and 'assign on clone'. HTH Miles Charlie Clark wrote: Dear all, I'm looking at using CMFUid and I'm

[Zope-CMF] base tag and aliases

2007-09-06 Thread Miles
#x27;t seem that there's any way in zope to turn the automatic tag off... thanks, Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests

[Zope-CMF] memberdata + mysql integration

2007-04-26 Thread Miles
sting products, and how much code (aside from entering column and table names etc) will I need to write? Thanks for your help, Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zop

[Zope-CMF] Re: Delete trouble

2007-03-28 Thread Miles
ired though (manage_beforeDelete looks to have had a 'children first' approach, whereas it looks as if dispatchToSublocations has a 'children last' approach) Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.or

[Zope-CMF] Re: opaque items

2007-03-19 Thread Miles
27;s __dict__, which presumably results in a speed-up. Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests

[Zope-CMF] opaque items

2007-03-15 Thread Miles
Thanks for any opinions Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests

[Zope-CMF] workflow and deletes

2007-02-14 Thread Miles
a 'delete' workflow action, but that would cause problems if ever the object were deleted via a different mechanism (e.g. zmi). Thanks Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinf

[Zope-CMF] CatalogTool

2007-01-22 Thread Miles Waller
on used to control anything? I thought it was used to deal with certain effective/expires ranges, but from grepping it doesn't seem to ever be used! Cheers, Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/li

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

2006-12-18 Thread Miles Waller
e free to set whatever policy it wanted. Is there a special reason why it needs to set the headers after rendering, rather than before? I can't think of a reason, but then our policies are about as simple as can be. Miles ___ Zope-CMF maillist -

[Zope-CMF] GS content profiles

2006-12-07 Thread Miles Waller
take care of including all the required properties, or should there be some way of ensuring that all common metadata (DC values) are treated via some sort of common route Thanks, Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope

[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] Re: CachingPolicyManager

2006-10-11 Thread Miles Waller
y of achieving the same thing? I cannot think of any simpler way of detecting whether an item is the 'original' template or a 'subtemplate' Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests

[Zope-CMF] CachingPolicyManager

2006-10-11 Thread Miles Waller
, but if that's the answer then I think it should definitely be clearer in the docs. Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests

[Zope-CMF] Re: Tools as local utilities

2006-09-13 Thread Miles Waller
people like Tres, Yvo, Florent etc. One thing that would be good about this is that the CMFUid suite could be deprecated in favour of an implementation based on zope3's intids utility. There was a discussion a while back about the future of that package: http://mail.zope.org/pipermail

[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] sample_content profile in CMF1.6

2006-09-05 Thread Miles Waller
that. Before I copy in the files and try to get it working, does anyone know if it should work, or if the content import/export is limited to later versions than 1.6? Thanks, Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.z

[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] strange problem fixed by _owner

2006-08-11 Thread Miles Waller
as noticed until now, is it just coincidence this fixed it, or what?! Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests

[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] types tool and aliases

2006-07-17 Thread Miles Waller
fault) also points to a method (Default), should this just be ignored) or is there some use for this behaviour? I'd like to fix this for my type infomration, but don't want to mask anything clever. Thanks Miles ___ Zope-CMF maillis

[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] caching policy queries

2006-07-05 Thread Miles Waller
he containing folder). What's the best way round this? Thanks for your help, Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests