<s> from casexml . apps . case . xform import is_device_report <EOL> def form_matches_users ( form , users ) : <EOL> try : <EOL> return form [ '<STR_LIT>' ] [ '<STR_LIT>' ] [ '<STR_LIT>' ] in users <EOL> except KeyError : <EOL> return False <EOL> def is_commconnect_form ( form ) : <EOL> """<STR_LIT>""" <EOL> return form . get ( '<STR_LIT>' , { } ) . get ( '<STR_LIT>' , { } ) . get ( '<STR_LIT>' , None ) == '<STR_LIT>' <EOL> def default_form_filter ( form , filter ) : <EOL> return is_device_report ( form ) or filter ( form ) <EOL> def default_case_filter ( doc ) : <EOL> return doc [ "<STR_LIT>" ] == "<STR_LIT>" </s>
