diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-07-04 15:39:22 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-08-13 18:26:03 +0200 |
commit | b4fb01fdbf1df2c01569065986392c9ae831837b (patch) | |
tree | fef3c93ea1e8c957e14f0e0e8e8f86bb5e221c30 /ishtar_common | |
parent | d3af6e3cce1a22853dd3cc9d25474af4718dc2eb (diff) | |
download | Ishtar-b4fb01fdbf1df2c01569065986392c9ae831837b.tar.bz2 Ishtar-b4fb01fdbf1df2c01569065986392c9ae831837b.zip |
Search: manage post process tretment of query (refs #4180)
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/views_item.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ishtar_common/views_item.py b/ishtar_common/views_item.py index a818c2719..9941f338c 100644 --- a/ishtar_common/views_item.py +++ b/ishtar_common/views_item.py @@ -513,6 +513,14 @@ def _manage_facet_search(model, dct, and_reqs): if reqs: and_reqs.append(reqs) + POST_PROCESS_REQUEST = getattr(model, 'POST_PROCESS_REQUEST', None) + if not POST_PROCESS_REQUEST: + return + for k in dct: + if k in POST_PROCESS_REQUEST and dct[k]: + dct[k] = getattr(model, POST_PROCESS_REQUEST[k])( + dct[k].replace(u'"', '')) + def _manage_hierarchic_fields(dct, and_reqs): for req in dct.copy(): |