(self, form)
Adds a form to this phase, removing it from other phases
Adds a form to this phase, removing it from other phases
Adds a form to this phase removing it from other phases
def add_form(self, form):
        """Adds a form to this phase, removing it from other phases"""
        old_phase = form.get_phase()
        if old_phase is not None and old_phase.anchor != self.anchor:
            old_phase.remove_form(form)

        if self.get_form(form) is None:
            self.forms.append(SchedulePhaseForm(form_id=form.unique_id))
def add_form ( self , form ) : old_phase = form . get_phase ( ) if old_phase is not None and old_phase . anchor != self . anchor : old_phase . remove_form ( form ) if self . get_form ( form ) is None : self . forms . append ( SchedulePhaseForm ( form_id = form . unique_id ) )