> <mailto:autobahnws+unsub...@googlegroups.com>.
> > <mailto:autobahnws+unsub...@googlegroups.com <javascript:>>.
> > To post to this group, send email to autob...@googlegroups.com
> <javascript:>
> > <mailto:autob...@googlegroups.com <javascript:>>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/autobahnws/e5c1cc32-c880-49e6-8dfd-47ca0bb7e973%40googlegroups.com
> <https://groups.google.com/d/msgid/autobahnws/e5c1cc32-c880-49e6-8dfd-47ca0bb7e973%40googlegroups.com>
>
> >
> <https://groups.google.com/d/msgid/autobahnws/e5c1cc32-c880-49e6-8dfd-47ca0bb7e973%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/autobahnws/e5c1cc32-c880-49e6-8dfd-47ca0bb7e973%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Autobahn" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to autobahnws+...@googlegroups.com
> <mailto:autobahnws+unsub...@googlegroups.com>.
Yes.
Though I was (and still am) thinking about the alternative you suggest. Probably I will move it into CB core.
Also: this special value magic .. anothwr alt.
Sent from Mobile (Google Nexus 5)
To unsubscribe from this group and stop receiving emails from it, send an email to autobahnws+...@googlegroups.com.
To post to this group, send email to autob...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/autobahnws/049032ed-75ae-465a-b5b2-788f18068cd9%40googlegroups.com.
START_TOKEN = '{{$'
END_TOKEN = '}}'
# -----------------------------------------------------------------------------
def inject_environment(config):
if isinstance(config, dict):
new_config = {}
for key, value in config.iteritems():
new_config[key] = inject_environment(value)
elif isinstance(config, list):
new_config = []
for value in config:
new_config.append(inject_environment(value))
elif isinstance(config, basestring) and \
config.startswith(START_TOKEN) and \
config.endswith(END_TOKEN):
new_config = os.getenv(config[len(START_TOKEN):-len(END_TOKEN)])
else:
new_config = config
return new_config
> > <mailto:autobahnws+unsubscribe@googlegroups.com <javascript:>>.
> > To post to this group, send email to autob...@googlegroups.com
> <javascript:>
> > <mailto:autob...@googlegroups.com <javascript:>>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/autobahnws/e5c1cc32-c880-49e6-8dfd-47ca0bb7e973%40googlegroups.com
> <https://groups.google.com/d/msgid/autobahnws/e5c1cc32-c880-49e6-8dfd-47ca0bb7e973%40googlegroups.com>
>
> >
> <https://groups.google.com/d/msgid/autobahnws/e5c1cc32-c880-49e6-8dfd-47ca0bb7e973%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/autobahnws/e5c1cc32-c880-49e6-8dfd-47ca0bb7e973%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Autobahn" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to autobahnws+...@googlegroups.com
> <mailto:autobahnws+unsubscribe@googlegroups.com>.
> To post to this group, send email to autob...@googlegroups.com
> <mailto:autob...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/autobahnws/2410503d-761e-4b97-9210-bc255cc56163%40googlegroups.com
> <https://groups.google.com/d/msgid/autobahnws/2410503d-761e-4b97-9210-bc255cc56163%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.