Ignore:
Timestamp:
20 Sep 2018, 20:40:45 (6 years ago)
Author:
Henrik Bettermann
Message:

Extend tests.

File:
1 edited

Legend:

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

    r15158 r15159  
    11631163            'validate_transcript')
    11641164        self.flash(_('Transcript validated.'))
    1165         self.redirect(self.url(self.context))
     1165        self.redirect(self.url(self.context) + '/transcript')
    11661166        return
    11671167
     
    11871187            self.flash(_('You have already signed this transcript.'),
    11881188                type="warning")
    1189             self.redirect(self.url(self.context))
     1189            self.redirect(self.url(self.context) + '/transcript')
    11901190            return
    11911191        self.flash(_('Transcript signed.'))
     
    12441244        tz = getattr(queryUtility(IKofaUtils), 'tzinfo', pytz.utc)
    12451245        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)
    12471248        if old_transcript_comment == None:
    12481249            old_transcript_comment = ''
Note: See TracChangeset for help on using the changeset viewer.