From: Chris C. <Chr...@ac...> - 2019-04-16 14:59:28
|
I stumbled across the initial_env setting at http://opensource.xhaus.com/projects/modjy/wiki/ModjyConfiguration/7 and I have a use for it so I gave it a go. I believe the documentation is incorrect on variable separators: A single name value pair is set by separating the name and value with a colon i.e. :*. Multiple name value pairs can be set by separating them with a semi-colon, i.e. *;. For example, if you wish to set the variable myAppString to STRING_VAL and myAppInteger to 42, then use the following value for this parameter: myAppString: STRING_VAL ; myAppInteger: 42. All names values are stored in the environment as strings. It claims a semi-colon should be used for the separator. Checking code https://github.com/jythontools/jython/blob/b9ff520f4f65231209d5200c22724516a72e75f2/Lib/modjy/modjy_wsgi.py#L142 and tests https://github.com/jythontools/jython/blob/b9ff520f4f65231209d5200c22724516a72e75f2/tests/modjy/java/com/xhaus/modjy/ModjyTestEnviron.java#L261 it looks like it a new line is expected (and testing this out works fine, semi-colon does not). Can anyone confirm/deny this? Thanks, Chris |