Changeset 2421


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
Files:
4 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']
  • WAeUP_SRP/uniben/profiles/default/layouts/acco_hall.xml

    r1412 r2421  
    88 <property name="flexible_widgets"/>
    99 <property name="validate_values_expr"></property>
     10
     11 <widget name="beds_for_pre" meta_type="MultiSelect Widget">
     12  <property name="fields">
     13   <element value="beds_for_pre"/>
     14  </property>
     15  <property name="is_required">False</property>
     16  <property name="label">Beds for PRE-NCE Students</property>
     17  <property name="label_edit">Beds for PRE-NCE Students</property>
     18  <property name="help">Name the bedspaces for PRE-NCE year students.
     19                        Attention: The bed letters must not exceed the number of beds per room.</property>
     20  <property name="readonly_layout_modes"/>
     21  <property name="hidden_layout_modes"/>
     22  <property name="hidden_readonly_layout_modes"/>
     23  <property name="vocabulary">waeup_bed_letters</property>
     24 </widget>
     25
    1026 <widget name="beds_for_final" meta_type="MultiSelect Widget">
    1127  <property name="fields">
  • WAeUP_SRP/uniben/profiles/default/schemas/acco_hall.xml

    r1412 r2421  
    55  <field name="beds_for_fresh" meta_type="CPS String List Field"/>
    66  <field name="beds_for_returning" meta_type="CPS String List Field"/>
     7  <field name="beds_for_pre" meta_type="CPS String List Field"/>
    78  <field name="beds_per_room" meta_type="CPS Int Field">
    89    <property name="default_expr">python:6</property>
Note: See TracChangeset for help on using the changeset viewer.