Commit bec622a2 authored by Romain Courteaud's avatar Romain Courteaud

erp5_web: fixup: QUERY_STRING is not always defined

See nexedi/erp5@bcd82831 (comment 216152)
parent 43b69d21
......@@ -1506,7 +1506,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python: (member is not None) and (request.other[\'method\'] == "GET") and (request.environ[\'QUERY_STRING\'] == "") and (lambda x: (x is not None) and (request.other[\'PUBLISHED\'] == x) and (x.getCachingPolicy() == "hateoas"))(object.getWebSectionValue())</string> </value>
<value> <string>python: (member is not None) and (request.other[\'method\'] == "GET") and (request.environ.get(\'QUERY_STRING\', \'\') == "") and (lambda x: (x is not None) and (request.other[\'PUBLISHED\'] == x) and (x.getCachingPolicy() == "hateoas"))(object.getWebSectionValue())</string> </value>
</item>
</dictionary>
</pickle>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment