[Grok-dev] grokproject: paster support in trunk now

Michael Haubenwallner michael at d2m.at
Wed Dec 10 05:18:33 EST 2008


Wichert Akkerman wrote:
> Previously Michael Haubenwallner wrote:
>> Derek Richardson wrote:
>>> Michael Haubenwallner wrote:
>>>> Derek Richardson wrote:
>>>> Hi Derek, i just changed the trunk to make configuration files use
>>>> absolute paths. Starting the instance from different directories and
>>>> paste configs should work now.
>>>> One thing to remember: startup.py assumes that .ini and zope.conf files
>>>> are in the same folder (global_config['here'], thats the location of the
>>>> paster .ini file). If you want to change that behaviour please let me
>>>> know. The zope.conf file could be read as well from the package/etc folder.
>>> Would it be possible to have the location of the zope.conf file 
>>> configurable in the paster.ini so that it defaults to the same location 
>>> as paster.ini but could be manually set to be at a different location? 
>>> That seems like the perfect solution, to me.
>> Decoupled paster .ini and zope.conf locations in trunk now.
>>
>> There is a global default 'zope_conf' now in the ini file. It is preset
>> to the ini file directory: %(here)s . Change its path to the zope.conf
>> folder if different.
> 
> Why not point that to the file itself, instead of to a directory? That
> would allow people to use different filenames, or do multiple
> deployments of the same app and put the conffiles in the same directory.
> 
> Levels of indirection are fine, but there has to be a good reason for
> them :)
> 
> Wichert.
> 

Good idea, done.

Thanks
Michael

-- 
http://blog.d2m.at
http://planetzope.org



More information about the Grok-dev mailing list