(self, form)
return next((phase_form.id for phase_form in self._get_forms() if phase_form.form_id == form.unique_id),
                    None)
Returns the index of the form with respect to the phase

        schedule_phase.forms = [a,b,c]
        schedule_phase.get_phase_form_index(b)
        => 1
        schedule_phase.get_phase_form_index(c)
        => 2
Returns the index of the form with respect to the phase
Returns the index of the form with respect to the phase
def get_phase_form_index(self, form):
        """
        Returns the index of the form with respect to the phase

        schedule_phase.forms = [a,b,c]
        schedule_phase.get_phase_form_index(b)
        => 1
        schedule_phase.get_phase_form_index(c)
        => 2
        """
        return next((phase_form.id for phase_form in self._get_forms() if phase_form.form_id == form.unique_id),
                    None)
def get_phase_form_index ( self , form ) : return next ( ( phase_form . id for phase_form in self . _get_forms ( ) if phase_form . form_id == form . unique_id ) , None )