[Zope3-dev] Package organization quandry

Guido van Rossum guido@python.org
Wed, 15 May 2002 15:58:42 -0400


> There's a tradeoff between moving things out of App to encourage
> their use outside of the Zope application server and keeping the
> dependencies between things outside of App to a minimum.

One possible strategy is to avoid hard-coded dependencies and instead
pass the necessary objects or classes in at construction time.  I
think TAL already uses this approach: there's a default execution
engine that's pretty simple and uses nothing except core Python; to
get the ZPT engine you instantiate and pass it explicitly.  Maybe this
idea can be extended?

--Guido van Rossum (home page: http://www.python.org/~guido/)