Changeset 17261 for main/waeup.kofa/trunk/src/waeup/kofa/browser
- Timestamp:
- 9 Jan 2023, 21:16:28 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r16834 r17261 366 366 if SUBMIT is not None: 367 367 if self.request.principal.id != 'zope.anybody': 368 self.flash(_('You logged in.'))368 #self.flash(_('You logged in.')) 369 369 if self.request.principal.user_type == 'student': 370 self.flash(_('You logged in as a student.')) 370 371 student = grok.getSite()['students'][ 371 372 self.request.principal.id] … … 397 398 return 398 399 elif self.request.principal.user_type == 'applicant': 400 self.flash(_('You logged in as an applicant.')) 399 401 container, application_number = self.request.principal.id.split('_') 400 402 rel_link = '/applicants/%s/%s' % ( … … 406 408 site_roles = get_user_account(self.request).roles 407 409 if local_roles.has_key('waeup.local.Lecturer'): 410 self.flash(_('You logged in as a lecturer.')) 408 411 self.redirect(self.application_url() + '/my_courses') 409 412 return 410 413 if local_roles.has_key('waeup.local.TranscriptOfficer') \ 411 414 or 'waeup.TranscriptOfficer' in site_roles: 415 self.flash(_('You logged in as a transcript officer.')) 412 416 self.redirect(self.application_url() + '/my_transcript_requests') 413 417 return 414 418 if local_roles.has_key('waeup.local.TranscriptSignee'): 419 self.flash(_('You logged in as a transcript signee.')) 415 420 self.redirect(self.application_url() + '/my_transcript_signing_requests') 416 421 return 417 422 if not self.camefrom: 423 self.flash(_('You logged in as an officer.')) 418 424 self.redirect(self.application_url() + '/index') 419 425 return 426 self.flash(_('You logged in as an officer.')) 420 427 self.redirect(self.camefrom) 421 428 return
Note: See TracChangeset for help on using the changeset viewer.