Commit 7bb68c2a authored by Romain Courteaud's avatar Romain Courteaud

erp5_web: fixup: QUERY_STRING is not always defined

See nexedi/erp5@bcd82831 (comment 216152)
parent 94406541
...@@ -1506,7 +1506,7 @@ ...@@ -1506,7 +1506,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </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