Ignore:
Timestamp:
18 Sep 2018, 19:41:05 (6 years ago)
Author:
Henrik Bettermann
Message:

Add StudentTranscriptSignView? which does nothing so far.
Add SignTranscriptActionButton?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/browser.py

    r15143 r15146  
    11651165        return
    11661166
     1167class StudentTranscriptSignView(UtilityView, grok.View):
     1168    """ View to sign transcript
     1169    """
     1170    grok.context(IStudentStudyCourse)
     1171    grok.name('sign_transcript')
     1172    grok.require('waeup.signTranscript')
     1173
     1174    def update(self, SUBMIT=None):
     1175        if self.context.student.state != TRANSVAL:
     1176            self.flash(_('Student is in wrong state.'), type="warning")
     1177            self.redirect(self.url(self.context))
     1178            return
     1179        self.flash(_('Transcript signed.'))
     1180        self.redirect(self.url(self.context))
     1181        return
     1182
     1183    def render(self):
     1184        return
     1185
    11671186class StudentTranscriptReleaseFormPage(KofaEditFormPage):
    11681187    """ Page to release transcript
     
    12301249    """ Page to display the student's transcript.
    12311250    """
    1232     grok.context(IStudentStudyCourseTranscript)
     1251    grok.context(IStudentStudyCourse)
    12331252    grok.name('transcript')
    12341253    grok.require('waeup.viewTranscript')
Note: See TracChangeset for help on using the changeset viewer.