Changeset 15158 for main/waeup.kofa/branches/henrik-transcript-workflow/src
- Timestamp:
- 20 Sep 2018, 20:01:55 (6 years ago)
- Location:
- main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/browser.py
r15155 r15158 1181 1181 self.redirect(self.url(self.context)) 1182 1182 return 1183 prev_transcript_signees = getattr( 1184 self.context, 'transcript_signees', None) 1185 if prev_transcript_signees \ 1186 and '(%s)' % self.request.principal.id in prev_transcript_signees: 1187 self.flash(_('You have already signed this transcript.'), 1188 type="warning") 1189 self.redirect(self.url(self.context)) 1190 return 1183 1191 self.flash(_('Transcript signed.')) 1184 1192 ob_class = self.__implemented__.__name__.replace('waeup.kofa.','') … … 1189 1197 tz = getattr(queryUtility(IKofaUtils), 'tzinfo', pytz.utc) 1190 1198 today = now(tz).strftime('%d/%m/%Y %H:%M:%S %Z') 1191 prev_transcript_signees = getattr(1192 self.context, 'transcript_signees', None)1193 1199 if prev_transcript_signees == None: 1194 1200 prev_transcript_signees = '' -
main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/students/browser_templates/transcript.pt
r14382 r15158 58 58 </tbody> 59 59 </table> 60 <br /> 61 <div tal:content="python:getattr(context, 'transcript_signees', '')">SIGNEES</div> 60 62 </tal:def>
Note: See TracChangeset for help on using the changeset viewer.