[Zope3-dev] Re: Third party application configuration

Garrett Smith garrett at mojave-corp.com
Mon May 31 11:37:56 EDT 2004


Chris Withers wrote:
> Garrett Smith wrote:
> 
>> Might it be possible to define a general purpose abstract type to 
>> support arbitrary extentions in zope.conf?
> 
> 
> What you want is possible in ZConfig, I managed to get it working in 
> another Python framework-ish application I'm building using twisted, btu 
> I don't remember how :-S
> 
> I think an abstract type was indeed how I did it, but I can't remember...

Yes, I was able to get this working by adding an abstract 'extension' 
type in Zope's schema.xml. This lets you add %import foo.bar to 
zope.conf and use whatever you want.

I decided not to go this route because I'm not comfortable/knowledgable 
with/of Zope's shutdown procedures, and this is a prerequisite to 
running subprocesses that start when Zope starts.

I think the driving use case for this is to launch another process, like 
a database, when Zope starts. For this to make sense the monitor thread 
needs a reliable shutdown message, which I don't believe is happening.

Probably a topic for revisiting down the road.

  -- Garrett





More information about the Zope3-dev mailing list