CIResults.filtering module
- class CIResults.filtering.FilterObject(db_path, description=None)
Bases:
object
- class CIResults.filtering.FilterObjectBool(db_path, description=None)
Bases:
FilterObject
- classmethod parse_value(value)
- class CIResults.filtering.FilterObjectDateTime(db_path, description=None)
Bases:
FilterObject
- classmethod parse_value(value)
- class CIResults.filtering.FilterObjectDuration(db_path, description=None)
Bases:
FilterObject
- classmethod parse_value(value)
- class CIResults.filtering.FilterObjectInteger(db_path, description=None)
Bases:
FilterObject
- classmethod parse_value(value)
- class CIResults.filtering.FilterObjectJSON(db_path, description=None, key=None)
Bases:
FilterObject
- class CIResults.filtering.FilterObjectModel(model, db_path, description=None)
Bases:
FilterObject
- parse_value(value)
- class CIResults.filtering.FilterObjectStr(db_path, description=None)
Bases:
FilterObject
- classmethod parse_value(value)
- class CIResults.filtering.LegacyParser(model, **user_filters)
Bases:
object
- class CIResults.filtering.QueryCreator(request, Model, prefix=None, default_query_parameters={})
Bases:
object
- multiple_request_params_to_query()
- request_to_query()
- string_to_query(query_string)
- class CIResults.filtering.QueryParser(model, user_query, ignore_fields: list[str] = [])
Bases:
object
- class CIResults.filtering.QueryParserPython(model, user_query, ignore_fields: list[str] = [])
Bases:
object
- class CIResults.filtering.QueryVisitor(model, ignore_fields=[], *arg, **kwargs)
Bases:
PTNodeVisitor
- class NoneObject
Bases:
object
- emit_and_operator(x, y)
- emit_contains_list_operator(filter_obj, item)
- emit_contains_string_operator(filter_obj, item)
- emit_empty()
- emit_equal_operator(filter_obj, item)
- emit_gt_operator(filter_obj, item)
- emit_gte_operator(filter_obj, item)
- emit_icontains_operator(filter_obj, item)
- emit_is_in_operator(filter_obj, item)
- emit_lt_operator(filter_obj, item)
- emit_lte_operator(filter_obj, item)
- emit_matches_operator(filter_obj, item)
- emit_not_operator(x)
- emit_or_operator(x, y)
- is_m2m(path: str) bool
- visit_basic_filter(node, children)
- visit_expression(node, children)
- visit_factor(node, children)
- visit_filter_field(node, children)
- visit_filter_object(node, children)
- visit_limit(node, children)
- visit_orderby(node, children)
- visit_orderby_object(node, children)
- visit_query(node, children)
- visit_val_ago(node, children)
- visit_val_array(node, children)
- visit_val_bool(node, children)
- visit_val_datetime(node, children)
- visit_val_duration(node, children)
- visit_val_int(node, children)
- visit_val_none(node, children)
- visit_val_str(node, children)
- visit_val_subquery(node, children)
- class CIResults.filtering.UserFiltrableMixin
Bases:
object
- classmethod from_user_filters(prefix=None, **user_filters)
- class CIResults.filtering.VisitorLocal(model, ignore_fields=[], *arg, **kwargs)
Bases:
QueryVisitor
- emit_and_operator(x, y)
- emit_contains_list_operator(filter_obj, item)
- emit_contains_string_operator(filter_obj, item)
- emit_empty()
- emit_equal_operator(filter_obj, item)
- emit_gt_operator(filter_obj, item)
- emit_gte_operator(filter_obj, item)
- emit_icontains_operator(filter_obj, item)
- emit_is_in_operator(filter_obj, item)
- emit_lt_operator(filter_obj, item)
- emit_lte_operator(filter_obj, item)
- emit_matches_operator(filter_obj, item)
- emit_not_operator(x)
- emit_or_operator(x, y)
- static get_list_getter(field_name)
- parse_field_name(filter_obj)
- class CIResults.filtering.VisitorQ(model, ignore_fields=[], *arg, **kwargs)
Bases:
QueryVisitor
- emit_and_operator(x, y)
- emit_contains_list_operator(filter_obj, item)
- emit_contains_string_operator(filter_obj, item)
- emit_empty()
- emit_equal_operator(filter_obj, item)
- emit_gt_operator(filter_obj, item)
- emit_gte_operator(filter_obj, item)
- emit_icontains_operator(filter_obj, item)
- emit_is_in_operator(filter_obj, item)
- emit_lt_operator(filter_obj, item)
- emit_lte_operator(filter_obj, item)
- emit_matches_operator(filter_obj, item)
- emit_not_operator(x)
- emit_or_operator(x, y)
- process_compare_operator(filter_obj, item, condition_key)
- CIResults.filtering.basic_filter()
- CIResults.filtering.compose(f1, f2)
- CIResults.filtering.create_and_op(f1, f2)
- CIResults.filtering.create_or_op(f1, f2)
- CIResults.filtering.expression()
- CIResults.filtering.factor()
- CIResults.filtering.filter_field()
- CIResults.filtering.filter_object()
- CIResults.filtering.function_compare_factory(fn, getter, value)
- CIResults.filtering.getnested(attr_path)
- CIResults.filtering.limit()
- CIResults.filtering.nested_expression()
- CIResults.filtering.orderby()
- CIResults.filtering.orderby_object()
- CIResults.filtering.query()
- CIResults.filtering.val_ago()
- CIResults.filtering.val_array()
- CIResults.filtering.val_bool()
- CIResults.filtering.val_datetime()
- CIResults.filtering.val_duration()
- CIResults.filtering.val_int()
- CIResults.filtering.val_none()
- CIResults.filtering.val_str()
- CIResults.filtering.val_subquery()