Hi,

Possibly related to my earlier email about the ordering of extends lines, but also possibly a bug or missing feature:

I have a buildout.cfg that extends instance.cfg and prod.cfg:

[buildout]
extends = instance.cfg prod.cfg

In instance.cfg, I have:

[instance]
recipe = plone.recipe.zope2instance
user = admin:admin
...

In prod.cfg:

[prod-instance]
<= instance
debug-mode = off
cache-size = 10000

[instance1]
<= prod-instance
http-address = 8001

[instance2]
<= prod-instance
http-address = 8002

The idea is that shared instance settings (which are also used in a debug.cfg) are kept in [instance], but ones specific to the production server are kept in [prod-instance], and instance1...N are clones of the prod-instance that only vary the port.

Unfortunately, the options from [instance] don't seem to make it into [instance1] or [instance2]. In other words, the macro doesn't seem to be evaluated "transitively".

Am I doing something wrong, or is this just not supported?

Cheers,
Martin

--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book

_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to