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 particular sites. The reason

[Zope-CMF] Proposal: Action expression contexts

2009-03-31 Thread Miles
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.launchpad.net/zope-cmf

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=98305view=rev Miles Miles wrote: Hi, Can anyone tell me if it is possible to register an adapter to provide a different IndexableObjectWrapper class from

Re: [Zope-CMF] IndexableObjectWrapper

2009-03-18 Thread Miles
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/desirable to make it a deprecation? Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http

Re: [Zope-CMF] IndexableObjectWrapper

2009-03-18 Thread Miles
. 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
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 we don't support 3., we can make 'no wrapping' the default. I think this is a change in the way

[Zope-CMF] Proposal: MemberDataFactory

2009-03-18 Thread Miles
that this 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.zope.org

Re: [Zope-CMF] Proposal: MemberDataFactory

2009-03-18 Thread Miles
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

Re: [Zope-CMF] IndexableObjectWrapper

2009-03-17 Thread Miles
/CMFCore Please try to follow PEP 8 and wrap long lines. I think this is done now; I don't think any of the files I touched have lines longer than 79 characters now - but if you do spot one then let me know! Miles ___ Zope-CMF maillist - Zope-CMF

[Zope-CMF] IndexableObjectWrapper

2009-03-16 Thread Miles
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
as to use the allowedRolesAndUsers and date filtering behaviours in other catalogs within the portal. So I can definitely see a use-case for it. So +1 from me to a multi-adapter on (object, catalog). Miles ___ Zope-CMF maillist - Zope-CMF

Re: [Zope-CMF] IndexableObjectWrapper

2009-03-11 Thread Miles
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
. 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
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://mail.zope.org/mailman

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 adapters for

[Zope-CMF] IndexableObjectWrapper

2009-03-09 Thread Miles
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 http://mail.zope.org

[Zope-CMF] zc.formlib and content types

2009-01-26 Thread Miles
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.org http://mail.zope.org

[Zope-CMF] zc.formlib and content types

2009-01-26 Thread Miles
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] Re: cmfuid and zope.app.intids

2008-05-30 Thread Miles
Hi, Thanks, that's really useful: I'll take a look at those. snip - 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 encounter! Miles

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

2008-05-29 Thread Miles
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

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

2008-05-29 Thread Miles
(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 right :-) ? Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org

[Zope-CMF] Re: CMFUid

2008-02-11 Thread Miles
. 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 not quite sure how to use it: do I

[Zope-CMF] base tag and aliases

2007-09-06 Thread Miles
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
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.zope.org

[Zope-CMF] Re: Delete trouble

2007-03-28 Thread Miles
(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.org/mailman/listinfo/zope-cmf See http

[Zope-CMF] opaque items

2007-03-15 Thread Miles
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
' 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/listinfo/zope-cmf See http

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

2006-12-18 Thread Miles Waller
. 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@lists.zope.org http://mail.zope.org

[Zope-CMF] GS content profiles

2006-12-07 Thread Miles Waller
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.org/mailman/listinfo/zope-cmf See http

[Zope-CMF] CachingPolicyManager

2006-10-11 Thread Miles Waller
that output_page_1 is a macro and requesting output_page_2, 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

[Zope-CMF] Re: CachingPolicyManager

2006-10-11 Thread Miles Waller
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] 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
), 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 maillist - Zope-CMF@lists.zope.org http://mail.zope.org

[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