modjy and initial_env setting

Chris Clark <[email protected]> Tue, 16 Apr 2019 14:43:27 +0000
Newsgroups gmane.comp.lang.jython.user
Message-ID <CY4PR06MB23437A19246C883431C5C6089F240@CY4PR06MB2343.namprd06.prod.outlook.com>
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

_______________________________________________
Jython-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jython-users