[Zope3-dev] Re: Third party application configuration
Tres Seaver
tseaver at zope.com
Sat May 29 15:11:56 EDT 2004
Garrett Smith wrote:
> Garrett Smith wrote:
>
>> Our application needs some configuration settings, specifically a path
>> to a Java VM and some Java library paths.
>>
>> Is there a way to tap into Zope's 'zope.conf' machinery? I.e. it would
>> be very nice to override our app settings via the command line when
>> starting Zope.
>
>
> On a related note, we're using Lucene as our full text indexer (thus the
> need for the JVM info) and want to store all of the application 'data'
> in a single directory structure, which will include the zodb files.
>
> Ideally, I'd like to see something like this for our zope.conf:
>
> datadir <path to data dir>
> ...
> <zodb>
> <filestorage>
> path $datadir/db.fs
> </filestorage>
> </zodb>
> ...
> <java>
> jvm <path to JVM program>
> libdir <path to our Java libs>
> </java>
> <textindex>
> path $datadir/text
> </textindex>
>
> Is this approach going to require a hack to the zope server main module,
> or are there hooks available?
ZConfig allows you to register extensions to the schema via the
'%import' directive:
http://cvs.zope.org/StandaloneZConfig/ZConfig/doc/zconfig.pdf
Tres.
--
===============================================================
Tres Seaver tseaver at zope.com
Zope Corporation "Zope Dealers" http://www.zope.com
More information about the Zope3-dev
mailing list