[Zope-CMF] Re: [dev] refactoring listFilteredActionsFor: a proposal
Yuppie
schubbe at web.de
Wed Nov 19 04:29:50 EST 2003
Regarding the proposed 'max' argument in listActionInfos() ...
I wrote:
>> The use case I had in mind for 'max' is returning only the first result.
>> This is used in combination with 'action_chain'. It doesn't make much
>> sense to evaluate the fallback actions if we found an action that passes
>> the checks. Would a 'only_first' flag better than 'max'?
Tres Seaver wrote:
> Or make the argument a negative, such as 'include_all_candidates'.
Dieter Maurer wrote:
> We can look how Python handles this case: e.g. "string.split", "re.sub".
>
> Along these line, "max" would be unlimited by default and when
> needed, a limited value can be specified.
I like Dieter's approach. I'll use max=-1 as default if there are no
objections.
Cheers, Yuppie
More information about the Zope-CMF
mailing list