def build_triggerset(using=None): global alldenorms # Use a TriggerSet to ensure each event gets just one trigger triggerset = triggers.TriggerSet(using=using) for denorm in alldenorms: triggerset.append(denorm.get_triggers(using=using)) return triggerset
def drop_triggers(using=None): triggerset = triggers.TriggerSet(using=using) triggerset.drop()