Re: dynamic values in yaml

2014-08-20 Thread Laurent Pointal
raphi...@gmail.com wrote: > Note that in my example the content to be inserted is not the result of a > variable substitution, but the result of a call to a function. format > doesn't seem to work in this case. And jinja2 doesn't seem to provide a > straight forward solution either > > Thx Yoy

Re: dynamic values in yaml

2014-08-20 Thread Mark Lawrence
On 20/08/2014 07:50, raphi...@gmail.com wrote: Would you please access this list via https://mail.python.org/mailman/listinfo/python-list or read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing double line spacing and single line paragraphs, thanks. -- My

Re: dynamic values in yaml

2014-08-20 Thread Rustom Mody
On Wednesday, August 20, 2014 12:20:21 PM UTC+5:30, raph...@gmail.com wrote: > On Tuesday, August 19, 2014 7:15:54 PM UTC+2, Rustom Mody wrote: > > On Tuesday, August 19, 2014 10:31:03 PM UTC+5:30, Laurent Pointal wrote: > > > raphinou wrote: > > > > Hi, > > > > I'm using pyyaml, and need some val

Re: dynamic values in yaml

2014-08-19 Thread raphinou
On Tuesday, August 19, 2014 7:15:54 PM UTC+2, Rustom Mody wrote: > On Tuesday, August 19, 2014 10:31:03 PM UTC+5:30, Laurent Pointal wrote: > > > raphinou wrote: > > > > > > Hi, > > > > I'm using pyyaml, and need some values in a yaml files to be dynamic, > > > for > > > > example somethin

Re: dynamic values in yaml

2014-08-19 Thread Rustom Mody
On Tuesday, August 19, 2014 10:31:03 PM UTC+5:30, Laurent Pointal wrote: > raphinou wrote: > > Hi, > > I'm using pyyaml, and need some values in a yaml files to be dynamic, > for > > example somethin like: > > filename: /tmp/backup_{% time.strftime('%Y-%m-%d') }.tgz > > Is there a simple way t

Re: dynamic values in yaml

2014-08-19 Thread Laurent Pointal
raphi...@gmail.com wrote: > Hi, > > I'm using pyyaml, and need some values in a yaml files to be dynamic, for > example somethin like: > > filename: /tmp/backup_{% time.strftime('%Y-%m-%d') }.tgz > > Is there a simple way to achieve this? (Eg with a templating system that > would first hand

dynamic values in yaml

2014-08-19 Thread raphinou
Hi, I'm using pyyaml, and need some values in a yaml files to be dynamic, for example somethin like: filename: /tmp/backup_{% time.strftime('%Y-%m-%d') }.tgz Is there a simple way to achieve this? (Eg with a templating system that would first handle the template parts from the yaml file) Th