示例#1
0
 def close_extensions(self, case_db, device_id):
     from casexml.apps.case.cleanup import close_cases
     extensions_to_close = case_db.filter_closed_extensions(list(self.extensions_to_close))
     if extensions_to_close:
         return close_cases(
             extensions_to_close,
             self.domain,
             SYSTEM_USER_ID,
             device_id,
             case_db,
         )
示例#2
0
 def close_extensions(self, case_db, device_id):
     from casexml.apps.case.cleanup import close_cases
     extensions_to_close = case_db.filter_closed_extensions(list(self.extensions_to_close))
     if extensions_to_close:
         return close_cases(
             extensions_to_close,
             self.domain,
             SYSTEM_USER_ID,
             device_id,
             case_db,
         )
示例#3
0
def close_extension_cases(case_db, cases, device_id):
    from casexml.apps.case.cleanup import close_cases
    extensions_to_close = get_all_extensions_to_close(case_db.domain, cases)
    extensions_to_close = case_db.filter_closed_extensions(list(extensions_to_close))
    if extensions_to_close:
        return close_cases(
            extensions_to_close,
            case_db.domain,
            SYSTEM_USER_ID,
            device_id,
            case_db,
        )
示例#4
0
 def close_extensions(self, case_db):
     from casexml.apps.case.cleanup import close_cases
     extensions_to_close = list(self.extensions_to_close)
     if extensions_to_close:
         return close_cases(list(self.extensions_to_close), self.domain, SYSTEM_USER_ID, case_db)
示例#5
0
 def close_extensions(self):
     from casexml.apps.case.cleanup import close_cases
     extensions_to_close = list(self.extensions_to_close)
     if extensions_to_close:
         return close_cases(list(self.extensions_to_close), self.domain, SYSTEM_USER_ID)