Changeset 934


Ignore:
Timestamp:
24 Nov 2006, 16:59:44 (18 years ago)
Author:
joachim
Message:

replace which_sex by blocks_for_female,
added a hack to support the undergraduate halls on Ekenhuan Campus
these halls have to get the special code Ekenhuan Campus.
todo use this special code in bed allocation.

Location:
WAeUP_SRP/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Accommodation.py

    r926 r934  
    5151            reserved = [(r.split('/')[0],int(r.split('/')[1])) for r in re.split(',|\.| ',h.reserved_rooms)
    5252                                     if r]
    53             sex = 'male'
    54             if h.which_sex:
    55                 sex = 'female'
    5653            #for block in range(1,int(h.nr_of_blocks)+1):
    5754            for block in 'ABCDEFGHIJ'[:int(h.nr_of_blocks)]:
     55                sex = 'male'
     56                if block in h.blocks_for_female:
     57                    sex = 'female'
    5858                for floor in range(1,int(h.nr_of_floors)+1):
    5959                    for room in range(1,int(h.rooms_per_floor)+1):
  • WAeUP_SRP/trunk/profiles/default/layouts/acco_hall.xml

    r933 r934  
    141141<property name="vocabulary">acco_special_handling</property>
    142142</widget>
    143 <widget name="study_courses" meta_type="Lines Widget">
    144  <property name="title">Studycourses</property>
    145  <property name="fields">
    146   <element value="study_courses"/>
    147  </property>
    148  <property name="label">Studycourses</property>
    149  <property name="label_edit">Studycourses</property>
    150  <property name="readonly_layout_modes"/>
    151  <property name="hidden_layout_modes"/>
    152  <property name="hidden_readonly_layout_modes"/>
    153  <property name="width">20</property>
    154  <property name="height">3</property>
    155 </widget>
    156143<widget name="maintenance_code" meta_type="Select Widget">
    157144 <property name="title">Maintenance Fee Prefix</property>
     
    176163  <row>
    177164   <cell name="special_handling"/>
    178   </row>
    179   <row>
    180    <cell name="study_courses"/>
    181165  </row>
    182166  <row>
  • WAeUP_SRP/trunk/profiles/default/vocabularies/acco_special_handling.xml

    r926 r934  
    88 <item key="pg" msgid="">Postgraduate</item>
    99 <item key="med" msgid="">Medical (Level 500/600)</item>
     10 <item key="ekenhuan" msgid="">Ekenhuan Campus</item>
    1011</object>
  • WAeUP_SRP/trunk/skins/waeup_accommodation/getBedTypeNames.py

    r926 r934  
    1616                 ]
    1717special = [item for item in context.portal_vocabularies.acco_special_handling.items()
    18                             if item[0] != 'no']
     18                            if not item[0].startswith('no')]
    1919type_suffixes.extend(special)
     20type_suffixes.append(('ekenhuan','Ekenhuan Campus'))
    2021dict = {}
    2122for gender in ('female','male'):
Note: See TracChangeset for help on using the changeset viewer.