コード例 #1
0
ファイル: factory.py プロジェクト: bazuzi/commcare-hq
def _build_property_match_filter(spec, context):
    warnings.warn("property_match are deprecated. Use boolean_expression instead.", DeprecationWarning)
    wrapped = PropertyMatchFilterSpec.wrap(spec)
    return SinglePropertyValueFilter(
        expression=wrapped.getter,
        operator=EQUAL,
        reference_expression=ExpressionFactory.from_spec(wrapped.property_value),
    )
コード例 #2
0
def _build_property_match_filter(spec, context):
    warnings.warn(
        "property_match are deprecated. Use boolean_expression instead.",
        DeprecationWarning,
    )
    wrapped = PropertyMatchFilterSpec.wrap(spec)
    return SinglePropertyValueFilter(
        expression=wrapped.getter,
        operator=EQUAL,
        reference_value=wrapped.property_value,
    )