def compile_response(self): root = get_response_element( message="Asynchronous restore under way for {}".format(self.username), nature=ResponseNature.OTA_RESTORE_PENDING ) sync_tag = get_sync_element() sync_tag.append(get_progress_element(**self.progress)) root.append(sync_tag) return ElementTree.tostring(root, encoding='utf-8')
def compile_response(self): root = get_response_element( message="Asynchronous restore under way for {}".format(self.username), nature=ResponseNature.OTA_RESTORE_PENDING ) sync_tag = get_sync_element() sync_tag.append(get_progress_element(**self.progress)) root.append(sync_tag) return ElementTree.tostring(root, encoding='utf-8')