[z3-five] Does Five support Local Utilities?

Lennart Regebro regebro at gmail.com
Tue Sep 19 12:05:11 CEST 2006


On 9/19/06, Chris Withers <chris at simplistix.co.uk> wrote:
> ...which, given what you've told me previously, is why I have the
> deepcopy in the Twiddler.setInput pseudocode above. The logic is roughly
> "if the input/output/whatever if configurable, then copy it and store
> the copy, otherwise just store a reference to the global utility"...
>
> Is that evil?

I would say so, yes. You are trying to use a utiloty as both a utility
and as a placeholder for object settings. It really doesn't make much
sense.
If you need a twiddler per object, the utility should probably be a
twiddler factory.

-- 
Lennart Regebro, Nuxeo     http://www.nuxeo.com/
CPS Content Management     http://www.cps-project.org/


More information about the z3-five mailing list