def program_sec(self): """ Ogrenci Programı Seçilir. """ _form = ProgramSecimForm(current=self.current, title=_(u"Öğrenci Programı Seçiniz")) _choices = prepare_choices_for_model(OgrenciProgram, ogrenci_id=self.current.task_data["ogrenci_id"]) _form.program = fields.Integer(choices=_choices) self.form_out(_form)
def program_sec(self): """ Öğrencinin kayıtlı olduğu programlar listelenir ve programlardan biri seçilir. """ ogrenci_id = self.current.input['id'] self.current.session['ogrenci_id'] = ogrenci_id _form = OgrenciProgramSecimForm(current=self.current, title=_(u"Öğrenci Programı Seçiniz")) _choices = prepare_choices_for_model(OgrenciProgram, ogrenci_id=ogrenci_id) _form.program = fields.Integer(choices=_choices) self.form_out(_form)
def program_sec(self): """ Ogrenci Programı Seçilir. """ _form = ProgramSecimForm(current=self.current, title=_(u"Öğrenci Programı Seçiniz")) _choices = prepare_choices_for_model( OgrenciProgram, ogrenci_id=self.current.task_data["ogrenci_id"]) _form.program = fields.Integer(choices=_choices) self.form_out(_form)
def program_sec(self): """ Öğrencinin kayıtlı olduğu program seçilir. """ ogrenci_id = self.current.input['id'] self.current.task_data['ogrenci_id'] = ogrenci_id _form = ProgramSecimForm(current=self.current, title=_(u"Öğrenci Programı Seçiniz")) _choices = prepare_choices_for_model(OgrenciProgram, ogrenci_id=ogrenci_id) _form.program = fields.Integer(choices=_choices) self.form_out(_form)
def program_sec(self): """ Öğrencinin kayıtlı olduğu öğrenci program seçilir. """ _form = forms.JsonForm(current=self.current, title=_(u'Program Seçiniz.')) _choices = prepare_choices_for_model(OgrenciProgram, ogrenci_id=self.current.task_data['ogrenci_id']) _form.program = fields.Integer(choices=_choices) _form.onayla = fields.Button('Seç') self.form_out(_form)
def program_sec(self): """Workflow'un ilk aşamasıdır. Seçilen öğrenciye ait programlar listelenir. """ ogrenci_id = self.current.input['id'] ogrenci = Ogrenci.objects.get(ogrenci_id) _form = forms.JsonForm(current=self.current, title=_(u"Öğrenci Programı Seçiniz")) _form.program = fields.Integer(_(u"Öğrenci Programı Seçiniz"), choices=prepare_choices_for_model(OgrenciProgram, ogrenci=ogrenci)) _form.sec = fields.Button(_(u"İleri")) self.form_out(_form)
def danisman_sec(self): """ Birime kayıtlı danışman biri seçilir. """ self.current.task_data['program_id'] = self.current.input['form']['program'] program = OgrenciProgram.objects.get(self.current.input['form']['program']) _form = DanismanSecimForm(current=self.current, title=_(u"Danışman Seçiniz")) _choices = prepare_choices_for_model(DonemDanisman, donem=Donem.guncel_donem(), bolum=program.program.birim) _form.donem_danisman = fields.Integer(choices=_choices) self.form_out(_form)
def program_sec(self): """ Öğrencinin kayıtlı olduğu öğrenci program seçilir. """ _form = forms.JsonForm(current=self.current, title=_(u'Program Seçiniz.')) _choices = prepare_choices_for_model( OgrenciProgram, ogrenci_id=self.current.task_data['ogrenci_id']) _form.program = fields.Integer(choices=_choices) _form.onayla = fields.Button('Seç') self.form_out(_form)
def ders_sec(self): """ Öğrencinin kayıtlı olduğu derslerden biri seçilir. """ program_id = self.current.input['form']['program'] self.current.task_data['program_id'] = self.current.input['form']['program'] _form = forms.JsonForm(current=self.current, title=_(u'Ders Seçiniz.')) _choices = prepare_choices_for_model(OgrenciDersi, ogrenci_program_id=program_id) _form.ders = fields.Integer(choices=_choices) _form.onayla = fields.Button(_(u'Seç')) self.form_out(_form)
def program_sec(self): """Workflow'un ilk aşamasıdır. Seçilen öğrenciye ait programlar listelenir. """ ogrenci_id = self.current.input['id'] ogrenci = Ogrenci.objects.get(ogrenci_id) _form = forms.JsonForm(current=self.current, title=_(u"Öğrenci Programı Seçiniz")) _form.program = fields.Integer(_(u"Öğrenci Programı Seçiniz"), choices=prepare_choices_for_model( OgrenciProgram, ogrenci=ogrenci)) _form.sec = fields.Button(_(u"İleri")) self.form_out(_form)
def sinav_sec(self): """ Derse ait sınavlardan biri seçilir. """ self.current.task_data['ders_id'] = self.current.input['form']['ders'] ogrenci_dersi = OgrenciDersi.objects.get(self.current.task_data['ders_id']) _form = forms.JsonForm(current=self.current, title=_(u'Sınav Seçiniz.')) _choices = prepare_choices_for_model(Sinav, sube_id=ogrenci_dersi.sube.key) _form.sinav = fields.Integer(choices=_choices) _form.onayla = fields.Button(_(u'Seç')) self.form_out(_form)
def ders_sec(self): """ Öğrencinin kayıtlı olduğu derslerden biri seçilir. """ program_id = self.current.input['form']['program'] self.current.task_data['program_id'] = self.current.input['form'][ 'program'] _form = forms.JsonForm(current=self.current, title=_(u'Ders Seçiniz.')) _choices = prepare_choices_for_model(OgrenciDersi, ogrenci_program_id=program_id) _form.ders = fields.Integer(choices=_choices) _form.onayla = fields.Button(_(u'Seç')) self.form_out(_form)
def program_sec(self): """Program Seçim Adımı Programlar veritabanından çekilip, açılır menu içine doldurulur. """ guncel_donem = Donem.objects.filter(guncel=True)[0] ogrenci_id = self.current.input['id'] self.current.task_data['ogrenci_id'] = ogrenci_id self.current.task_data['donem_id'] = guncel_donem.key _form = ProgramSecimForm(current=self.current, title=_(u"Öğrenci Programı Seçiniz")) _choices = prepare_choices_for_model(OgrenciProgram, ogrenci_id=ogrenci_id) _form.program = fields.Integer(choices=_choices) self.form_out(_form)
def danisman_sec(self): """ Birime kayıtlı danışman biri seçilir. """ self.current.task_data['program_id'] = self.current.input['form'][ 'program'] program = OgrenciProgram.objects.get( self.current.input['form']['program']) _form = DanismanSecimForm(current=self.current, title=_(u"Danışman Seçiniz")) _choices = prepare_choices_for_model(DonemDanisman, donem=Donem.guncel_donem(), bolum=program.program.birim) _form.donem_danisman = fields.Integer(choices=_choices) self.form_out(_form)
def sinav_sec(self): """ Derse ait sınavlardan biri seçilir. """ self.current.task_data['ders_id'] = self.current.input['form']['ders'] ogrenci_dersi = OgrenciDersi.objects.get( self.current.task_data['ders_id']) _form = forms.JsonForm(current=self.current, title=_(u'Sınav Seçiniz.')) _choices = prepare_choices_for_model(Sinav, sube_id=ogrenci_dersi.sube.key) _form.sinav = fields.Integer(choices=_choices) _form.onayla = fields.Button(_(u'Seç')) self.form_out(_form)
def program_sec(self): """Program Seçim Adımı Programlar veritabanından çekilip, açılır menu içine doldurulur. """ guncel_donem = Donem.guncel_donem(self.current) ogrenci_id = self.current.input['id'] self.current.task_data['ogrenci_id'] = ogrenci_id self.current.task_data['donem_id'] = guncel_donem.key _form = ProgramSecimForm(current=self.current, title=_(u"Öğrenci Programı Seçiniz")) _choices = prepare_choices_for_model(OgrenciProgram, ogrenci_id=ogrenci_id) _form.program = fields.Integer(choices=_choices) self.form_out(_form)