[Zope3-dev] IFactory, and composite factories
R. David Murray
bitz@bitdance.com
Fri, 30 Aug 2002 15:50:48 -0400 (EDT)
I just closed collector issue 9, document composite factories.
However, I have a question.
A composite factory looks like:
c(b(a(context)))
For a ViewFactory and an adapter I think I know what context is.
But for other things (securityPolicy, utility) I'm not quite sure
what it is. Is "context" a good generic name to use to document
this?
I'm expecting that it is, but: IFactory.py says that '__call__'
takes no arguments. How can that be if the above is the correct
form for a composite factory? Should IFactory take 'context' as a
__call__ argument? But you wouldn't have a context for a placeless
factory. Are there in fact two Factory interfaces, one that takes
no arguments and say IChainedFactory that takes an object instance? Or
am I confused and these other directives can't have chained factories?
Or am I just confused because I haven't read enough zope3 code <grin>?
trying-to-(re)learn-by-documenting'ly yours
--RDM