Changeset 667


Ignore:
Timestamp:
12 Oct 2006, 12:29:48 (18 years ago)
Author:
joachim
Message:

added layout_application_view_info to display selected Info for a student used in accommodation_slip

Location:
WAeUP_SRP/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Widgets.py

    r648 r667  
    247247###)
    248248
    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 None
    255 ##    return search[0].getObject().
    256                    
    257249class JambRegNoWidget(CPSStringWidget): ###(
    258250    """ JambRegNo Widget"""
  • WAeUP_SRP/trunk/profiles/default/layouts/student_accommodation.xml

    r659 r667  
    44 <property name="layout_edit_method"></property>
    55 <property name="layout_view_method"></property>
    6  <property name="style_prefix">layout_waeup_</property>
     6 <property name="style_prefix">layout_accommodation_</property>
    77 <property name="flexible_widgets"/>
    88 <property name="validate_values_expr"></property>
     
    5555  <property name="hidden_readonly_layout_modes"/>
    5656 </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>
    6869 <widget name="session" meta_type="String Widget">
    6970  <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
    22# $Id: apply_admission.py 543 2006-09-24 07:44:32Z henrik $
    33"""
     
    55"""
    66
     7if datastructure is not None:
     8    bed = datastructure.get('bed')
    79hall,block,room,letter = bed.split('_')
    810res = context.portal_catalog(portal_type="AccoHall",id=hall)
  • WAeUP_SRP/trunk/skins/waeup_student/accommodation_slip.pt

    r658 r667  
    88      <br />
    99      <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=""
    1015            tal:content="structure python: info['acco_doc'].render(proxy=info['acco_doc'],
    1116            layout_mode='view_slip',
Note: See TracChangeset for help on using the changeset viewer.