Changeset 667
- Timestamp:
- 12 Oct 2006, 12:29:48 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Widgets.py
r648 r667 247 247 ###) 248 248 249 ##def getStudentByRegNo(self,reg_no):250 ## search = self.portal_catalog({'meta_type': 'StudentApplication',251 ## 'jamb_reg_no': reg_no,252 ## })253 ## if len(search) < 1:254 ## return None255 ## return search[0].getObject().256 257 249 class JambRegNoWidget(CPSStringWidget): ###( 258 250 """ JambRegNo Widget""" -
WAeUP_SRP/trunk/profiles/default/layouts/student_accommodation.xml
r659 r667 4 4 <property name="layout_edit_method"></property> 5 5 <property name="layout_view_method"></property> 6 <property name="style_prefix">layout_ waeup_</property>6 <property name="style_prefix">layout_accommodation_</property> 7 7 <property name="flexible_widgets"/> 8 8 <property name="validate_values_expr"></property> … … 55 55 <property name="hidden_readonly_layout_modes"/> 56 56 </widget> 57 <widget name="bed" meta_type="String Widget"> 58 <property name="title">Bed Id</property> 59 <property name="fields"> 60 <element value="bed"/> 61 </property> 62 <property name="label">Bed Id</property> 63 <property name="label_edit">Bed Id</property> 64 <property name="readonly_layout_modes">edit</property> 65 <property name="hidden_layout_modes"/> 66 <property name="hidden_readonly_layout_modes"/> 67 </widget> 57 <widget name="bed" meta_type="Method Widget"> 58 <property name="title">Bed</property> 59 <property name="fields"> 60 <element value="bed"/> 61 </property> 62 <property name="label">Bed</property> 63 <property name="label_edit">Bed</property> 64 <property name="readonly_layout_modes"/> 65 <property name="hidden_layout_modes"/> 66 <property name="hidden_readonly_layout_modes"/> 67 <property name="render_method">formatBed</property> 68 </widget> 68 69 <widget name="session" meta_type="String Widget"> 69 70 <property name="title">Session</property> -
WAeUP_SRP/trunk/skins/waeup_accommodation/formatBed.py
r654 r667 1 ##parameters=bed 1 ##parameters=bed=None,mode=None,datastructure=None 2 2 # $Id: apply_admission.py 543 2006-09-24 07:44:32Z henrik $ 3 3 """ … … 5 5 """ 6 6 7 if datastructure is not None: 8 bed = datastructure.get('bed') 7 9 hall,block,room,letter = bed.split('_') 8 10 res = context.portal_catalog(portal_type="AccoHall",id=hall) -
WAeUP_SRP/trunk/skins/waeup_student/accommodation_slip.pt
r658 r667 8 8 <br /> 9 9 <span tal:omit-tag="" 10 tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'], 11 layout_mode='view_info', 12 layout_id='student_application_fe')" 13 /> 14 <span tal:omit-tag="" 10 15 tal:content="structure python: info['acco_doc'].render(proxy=info['acco_doc'], 11 16 layout_mode='view_slip',
Note: See TracChangeset for help on using the changeset viewer.