Changeset 2421 for WAeUP_SRP/base


Ignore:
Timestamp:
23 Oct 2007, 08:42:32 (17 years ago)
Author:
Henrik Bettermann
Message:

add 'Beds for PRE-NCE' category (displayed only for collgeges)

Location:
WAeUP_SRP/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Accommodation.py

    r1571 r2421  
    6969                            elif bed in h.beds_for_fresh:
    7070                                bt = 'fr'
    71                             #elif bed in h.beds_for_returning:
    72                             #    bt = 're'
     71                            elif bed in h.beds_for_pre:
     72                                bt = 'pr'
    7373                            elif bed in h.beds_for_final:
    7474                                bt = 'fi'
  • WAeUP_SRP/base/skins/waeup_accommodation/getAccommodationInfo.py

    r1871 r2421  
    9797elif int(s_brain.level) < 300:
    9898    bt = 're'
     99elif int(s_brain.level) < 100:
     100    bt = 'pr'   
     101elif s_brain.faculty in ('MED') and int(s_brain.level) >= 400:
     102    bt = "med"
    99103else:
    100104    res = context.portal_catalog(portal_type = "Certificate", id = s_brain.course)
     
    122126elif s_brain.course in pti_certificates:
    123127    bt += "_pti"
    124 elif s_brain.faculty in ('MED') and int(s_brain.level) >= 400:
    125     bt += "_med"
     128
    126129
    127130info['sex']=d['sex']
Note: See TracChangeset for help on using the changeset viewer.