Ejemplo n.º 1
0
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()])
Ejemplo n.º 2
0
 def workflow_script_unassign(self):
     events.after_unassign(self)
Ejemplo n.º 3
0
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()])