On 7/2/15 6:35 PM, Mike Orr wrote:
I found an issue with TOML files. It says you can't have a dot in a
key name, but some consumers look for dotted keys
("pyramid.reload_templates", "debugtoolbar.enabled"). Can those
settings not be used without postprocessing the settings?

Dots are prohibited in bare keys, but all you have to do is wrap the key in quotes. e.g.:

[some_section]
simple_value = "foo"
"pyramid.dotted.value" = "bar"

is parsed into this Python dict:

{u'some_section': {u'simple_value': u'foo', u'pyramid.dotted.value': u'bar'}}

--
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-devel+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to