I think a valuable extension to the parameter parsing in buildout's configuration language would be to allow += and -= operators, which would append and remove items, respectively. Example: [instance] eggs += Products.PDBDebugMode Singular or plural arguments would be supported. \malthe
On Tue, Jun 3, 2008 at 9:52 AM, Malthe Borch <mborch@gmail.com> wrote:
I think a valuable extension to the parameter parsing in buildout's configuration language would be to allow += and -= operators, which would append and remove items, respectively.
Example:
[instance] eggs += Products.PDBDebugMode
Singular or plural arguments would be supported.
It would be very useful when used together with "extends". Example (taken from [1]). You have a base.cfg: """ [instance] eggs = PILwoTK lxml > 2.0 zope.testing == 3.5 """ And you want to write a development.cfg, which adds a new egg for debugging. Currently you have to do: """ [buildout] extends = base.cfg [instance] eggs = PILwoTK lxml > 2.0 zope.testing == 3.5 Products.PDBDebugMode """ With the new operator you could simplify it to: """ [buildout] extends = base.cfg [instance] eggs += Products.PDBDebugMode """ Tell me if I misunderstood the idea. [1] https://svn.infrae.com/buildout/silva/trunk/profiles/ Regards, -- Rafael Bruno Cavalhero de Oliveira <rafaelbco@gmail.com> Analista de Sistemas - Paradigma <http://www.paradigma.com.br> Mestrando em Ciência da Informação - UFMG http://rafaelb.objectis.net
Malthe Borch wrote:
I think a valuable extension to the parameter parsing in buildout's configuration language would be to allow += and -= operators, which would append and remove items, respectively.
Example:
[instance] eggs += Products.PDBDebugMode
Singular or plural arguments would be supported.
\malthe
This isn't the buildout list :). I think buildout matters are discussed on the distutils SIG mailinglist. There's also an issue tracker at https://edge.launchpad.net/zc.buildout.
Philipp von Weitershausen wrote:
This isn't the buildout list :). I think buildout matters are discussed on the distutils SIG mailinglist.
I guess they're also discussed here now :P
There's also an issue tracker at https://edge.launchpad.net/zc.buildout.
I'll submit it there, thanks. \malthe
participants (3)
-
Malthe Borch -
Philipp von Weitershausen -
Rafael Oliveira