The json like query strings ([test] or {test}) doomed to fail for KeywordsVocabulary, due to the use of _parseJSON:
|
|
|
def _parseJSON(s): |
|
# XXX this should be changed to a try loads except return s |
|
if isinstance(s, str): |
|
s = s.strip() |
|
if (s.startswith("{") and s.endswith("}")) or ( |
|
s.startswith("[") and s.endswith("]") |
|
): # detect if json |
|
return json_loads(s) |
|
return s |
The json like query strings (
[test]or{test}) doomed to fail forKeywordsVocabulary, due to the use of_parseJSON:plone.app.content/plone/app/content/browser/vocabulary.py
Lines 93 to 102 in 68721f4