Changeset 673 for WAeUP_SRP/trunk
- Timestamp:
- 12 Oct 2006, 19:02:41 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTables.py
r672 r673 85 85 return -1,"Student with Id %s already booked bed %s" % (student_id,records[0].bed) 86 86 87 records = [r for r in self.searchResults({'bed_type' : bed_type}) if not r ]87 records = [r for r in self.searchResults({'bed_type' : bed_type}) if not r.student] 88 88 if len(records) == 0: 89 89 return -1,"no bed of this type available" -
WAeUP_SRP/trunk/profiles/default/layouts/student_accommodation.xml
r672 r673 2 2 <object name="student_accommodation" meta_type="CPS Layout"> 3 3 <property name="layout_create_method"></property> 4 <property name="layout_edit_method">layout_waeup_ edit</property>4 <property name="layout_edit_method">layout_waeup_</property> 5 5 <property name="layout_view_method"></property> 6 6 <property name="style_prefix">layout_accommodation_</property> … … 8 8 <property name="validate_values_expr"></property> 9 9 <widget name="acco_maint_date" meta_type="DateTime Widget"> 10 <property name="title"> Accommodation Maintainance Date</property>10 <property name="title">Maintainance Fee Date</property> 11 11 <property name="fields"> 12 12 <element value="acco_maint_date"/> 13 13 </property> 14 <property name="label"> Accommodation Maintainance Date</property>15 <property name="label_edit"> Accommodation Maintainance Date</property>14 <property name="label">Maintainance Fee Date</property> 15 <property name="label_edit">Maintainance Fee Date</property> 16 16 <property name="readonly_layout_modes"/> 17 17 <property name="hidden_layout_modes"/> … … 21 21 </widget> 22 22 <widget name="acco_maint_sc_pin" meta_type="String Widget"> 23 <property name="title"> Accommodation Maintainance SC-Pin</property>23 <property name="title">Maintainance Fee Access Code</property> 24 24 <property name="fields"> 25 25 <element value="acco_maint_sc_pin"/> 26 26 </property> 27 <property name="label"> Accommodation Maintainance SC-Pin</property>28 <property name="label_edit"> Accommodation Maintainance SC-Pin</property>27 <property name="label">Maintainance Fee Access Code</property> 28 <property name="label_edit">Maintainance Fee Access Code</property> 29 29 <property name="readonly_layout_modes"/> 30 30 <property name="hidden_layout_modes"/> … … 33 33 </widget> 34 34 <widget name="acco_res_date" meta_type="DateTime Widget"> 35 <property name="title"> AccommodationReservation Date</property>35 <property name="title">Reservation Date</property> 36 36 <property name="fields"> 37 37 <element value="acco_res_date"/> 38 38 </property> 39 <property name="label"> AccommodationReservation Date</property>40 <property name="label_edit"> AccommodationReservation Date</property>39 <property name="label">Reservation Date</property> 40 <property name="label_edit">Reservation Date</property> 41 41 <property name="readonly_layout_modes"/> 42 42 <property name="hidden_layout_modes"/> … … 45 45 </widget> 46 46 <widget name="acco_res_sc_pin" meta_type="String Widget"> 47 <property name="title"> Accommodation Reservation SC-Pin</property>47 <property name="title">Reservation Access Code</property> 48 48 <property name="fields"> 49 49 <element value="acco_res_sc_pin"/> 50 50 </property> 51 <property name="label"> Accommodation Reservation SC-Pin</property>52 <property name="label_edit"> Accommodation Reservation SC-Pin</property>51 <property name="label">Reservation Access Code</property> 52 <property name="label_edit">Reservation Access Code</property> 53 53 <property name="readonly_layout_modes"/> 54 54 <property name="hidden_layout_modes"/>
Note: See TracChangeset for help on using the changeset viewer.