def is_ok(self, dlg: MetaDlgDataDialog):
    if (self.tasks and (dlg.task_id not in self.tasks)):
        return False
    if (self.domains and (dlg.domain not in self.domains)):
        return False
    return True
def is_ok(self, dlg: MetaDlgDataDialog):
    if (self.tasks and (dlg.task_id not in self.tasks)):
        return False
    if (self.domains and (dlg.domain not in self.domains)):
        return False
    return True