def after_unassign(duplicate_analysis): """Removes the duplicate from the system """ analysis_events.after_unassign(duplicate_analysis) parent = duplicate_analysis.aq_parent logger.info("Removing duplicate '{}' from '{}'".format( duplicate_analysis.getId(), parent.getId())) parent.manage_delObjects([duplicate_analysis.getId()])
def workflow_script_unassign(self): events.after_unassign(self)
def after_unassign(reference_analysis): """Removes the reference analysis from the system """ analysis_events.after_unassign(reference_analysis) ref_sample = reference_analysis.aq_parent ref_sample.manage_delObjects([reference_analysis.getId()])