On Thu, Oct 21, 2010 at 10:10 AM, Attila Oláh <[email protected]> wrote: > Hi, > > On 10/21/10 14:22, Sylvain Viollon wrote: >> Hello, >> >> That might be a stupid question, but how do I escape ${ in a buildout >> configuration file so it doesn't look for a buildout option ? > > I have managed to do that by assigning "$" to a buildout variable, > something like > > [section] > dollar = $ > mystr = ${section:dollar}{foo:bar} > > Not very nice but works. I can't find the exact example right now, so > maybe you'll have to fiddle with it, like escaping the dollar sign in > the variable, or putting it in quotes or something, but you get the idea. > >> I found nothing in the README, and if I use something like $${ I >> have as result $${, and I just would like to get ${. Something like >> \${ doesn't work as well. > > I couldn't find it either. Anyone knows how to properly do this?
This looks like a bug. The buildout documentation says it's using the string.Template syntax, but it's apparently only partially handling the escape. It recognizes that $$ is an escape, but it's not converting it to a single $. To report a bug, use: https://bugs.launchpad.net/zc.buildout/+bugs Jim -- Jim Fulton _______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
