Changeset 15354 for main


Ignore:
Timestamp:
18 Mar 2019, 09:24:33 (6 years ago)
Author:
Henrik Bettermann
Message:

Clinical students can also select a desired hostel.

Temporarily disable JHL Id Card button.

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

    r15342 r15354  
    125125                bt = 're'
    126126            special_handling = 'regular'
    127             if student.faccode in ('MED', 'DEN'):
     127            desired_hostel = student['accommodation'].desired_hostel
     128            if student.faccode in ('MED', 'DEN') and (
     129                not desired_hostel or desired_hostel.startswith('clinical')):
    128130                special_handling = 'clinical'
    129131            elif student.certcode in ('BARTMAS', 'BARTTHR', 'BARTFAA',
  • main/waeup.uniben/trunk/src/waeup/uniben/students/viewlets.py

    r15352 r15354  
    122122    @property
    123123    def target_url(self):
     124        # temporarily disabled
     125        return ''
    124126        return self.view.url(self.view.context, self.target)
    125127
Note: See TracChangeset for help on using the changeset viewer.