audit-logs: handle query syntax in whosh query parser....
marcink -
r2520:80b18ba8 stable
Not Reviewed
Show More
Add another comment
TODOs: 0 unresolved 0 Resolved
COMMENTS: 0 General 0 Inline
@@ -106,11 +106,14
106 elif isinstance(term, query.DateRange):
106 elif isinstance(term, query.DateRange):
107 field = term.fieldname
107 field = term.fieldname
108 val = [term.startdate, term.enddate]
108 val = [term.startdate, term.enddate]
109 elif isinstance(term, query.NullQuery.__class__):
110 field = ''
111 val = ''
109 else:
112 else:
110 field = term.fieldname
113 field = term.fieldname
111 val = term.text
114 val = term.text
112
115 if field:
113 user_log = user_log.filter(get_filterion(field, val, term))
116 user_log = user_log.filter(get_filterion(field, val, term))
114 elif isinstance(qry, query.Or):
117 elif isinstance(qry, query.Or):
115 filters = []
118 filters = []
116 for term in qry:
119 for term in qry:
Comments 0
You need to be logged in to leave comments. Login now