Changeset 15159 for main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/browser.py
- Timestamp:
- 20 Sep 2018, 20:40:45 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/browser.py
r15158 r15159 1163 1163 'validate_transcript') 1164 1164 self.flash(_('Transcript validated.')) 1165 self.redirect(self.url(self.context) )1165 self.redirect(self.url(self.context) + '/transcript') 1166 1166 return 1167 1167 … … 1187 1187 self.flash(_('You have already signed this transcript.'), 1188 1188 type="warning") 1189 self.redirect(self.url(self.context) )1189 self.redirect(self.url(self.context) + '/transcript') 1190 1190 return 1191 1191 self.flash(_('Transcript signed.')) … … 1244 1244 tz = getattr(queryUtility(IKofaUtils), 'tzinfo', pytz.utc) 1245 1245 today = now(tz).strftime('%d/%m/%Y %H:%M:%S %Z') 1246 old_transcript_comment = self.context.transcript_comment 1246 old_transcript_comment = getattr( 1247 self.context, 'transcript_comment', None) 1247 1248 if old_transcript_comment == None: 1248 1249 old_transcript_comment = ''
Note: See TracChangeset for help on using the changeset viewer.