[Zope-CMF] Adapterizing CMFCore.WorkflowTool redux

Laurence Rowe l at lrowe.co.uk
Tue Oct 19 11:18:33 EDT 2010


On 27 September 2010 19:33, Laurence Rowe <l at lrowe.co.uk> wrote:
> On 25 September 2010 16:26, Charlie Clark
> <charlie.clark at clark-consulting.eu> wrote:
>> Am 24.09.2010, 00:18 Uhr, schrieb Laurence Rowe <l at lrowe.co.uk>:
>>
>>> If there are no objections I shall merge the changes back to trunk.
>>
>> +1 from me. Please update changes.txt
>>
>>  From your original post:
>>
>> * I currently adapt based on (IContentish, IWorkflowDefinition) should
>> this be made more general, i.e. (Interface, IWorkflowDefinition)? Does
>> anyone workflow anything that is not IContentish?
>>
>> Shouldn't only IWorkflowAware be adapted?
>
> I've changed it to adapt (IWorflowAware, IWorkflowDefinition) now.
> I've also made a change so that objects are possibly adapted to
> IWorkflowAware before calling notifyWorkflowCreated so this may be
> implemented as an adapter instead of a mixin.
>
>> * Is deprecating getStatusOf, setStatusOf, getHistoryOf desirable? I'm not
>> sure it would serve any particular purpose.
>>
>> Looking at the implementation the question I would ask myself is, what are
>> the alternatives? In general I'd agree with yuppie on less tool methods
>> and more adapters but not with the current spelling for multiadapters.
>
> I don't think it really serves any purpose at this time. I'll merge to
> trunk later this week assuming no objections.

Merged in 117773

Laurence


More information about the Zope-CMF mailing list