string formatting issue with PasteDeploy

16 views
Skip to first unread message

Eric Rasmussen

unread,
Nov 29, 2012, 8:53:53 PM11/29/12
to pylons-...@googlegroups.com
Hi everyone,

There's an open issue with PasteDeploy (https://bitbucket.org/ianb/pastedeploy/issue/11/there-is-no-way-to-escape-character-in-the) that prevents you from using "%(var)s" string formatting in paster ini files. Unfortunately the "%%" escape syntax for percent signs does not work with PasteDeploy.

I ran into this when trying to specify a log format for gunicorn with variables gunicorn needs but that PasteDeploy should ignore (this is an excerpt):

    access_log_format = %(h)s %(l)s

I'm looking into different ways around the issue and wanted to know what's been working for everyone so far.

Thanks,
Eric
Reply all
Reply to author
Forward
0 new messages