Ignore:
Timestamp:
27 Oct 2022, 20:51:43 (2 years ago)
Author:
Henrik Bettermann
Message:

Student id prefix for Uniben CDL is „C“.

Fix viewlet.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py

    r17112 r17145  
    674674
    675675    # Uniben prefix
    676     STUDENT_ID_PREFIX = u'B'
     676    @property
     677    def STUDENT_ID_PREFIX(self):
     678        if grok.getSite().__name__ == 'uniben-cdl':
     679            return u'C'
     680        return u'B'
    677681
    678682    STUDENT_EXPORTER_NAMES = (
  • main/waeup.uniben/trunk/src/waeup/uniben/students/viewlets.py

    r17143 r17145  
    5858    def target_url(self):
    5959        if self.context.is_jupeb:
    60             emit_lock_message(self)
    61             return 
     60            return ''
    6261        PORTRAIT_CHANGE_STATES = getUtility(IStudentsUtils).PORTRAIT_CHANGE_STATES
    6362        if self.context.state not in PORTRAIT_CHANGE_STATES and not self.context.is_postgrad:
Note: See TracChangeset for help on using the changeset viewer.