Changeset 1753


Ignore:
Timestamp:
8 May 2007, 10:02:01 (18 years ago)
Author:
Henrik Bettermann
Message:

session_results_view without accessing returning_import
not_imported file format corrected

Location:
WAeUP_SRP/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r1752 r1753  
    777777                adapters = [MappingStorageAdapter(schema, item)]
    778778                dm = DataModel(item, adapters,context=self)
    779                 logger.info('Start importing from %s.csv' % name)
     779                logger.info('Start importing from %s.csv' % filename)
    780780                import_keys = item.keys()
    781781                diff_set = set(import_keys).difference(set(schema.keys()))
     
    787787                    logger.error('%s not in layout.' % diff_set)
    788788                    return
    789                 s = '"id",'+','.join(['"%s"' % fn for fn in import_keys])
     789                s = ','.join(['"%s"' % fn for fn in import_keys])
    790790                imported.append(s)
    791791                not_imported.append('%s,"Error"' % s)
  • WAeUP_SRP/trunk/profiles/default/layouts/import_student.xml

    r1747 r1753  
    3131  <property name="hidden_readonly_layout_modes"/>
    3232  <property name="display_width">15</property>
    33  </widget> 
     33 </widget>
    3434 <widget name="perm_address" meta_type="String Widget">
    3535  <property name="title">Address</property>
     
    4343  <property name="hidden_readonly_layout_modes"/>
    4444  <property name="display_width">60</property>
    45  </widget> 
     45 </widget>
    4646 <widget name="state" meta_type="Select Widget">
    4747  <property name="title">State</property>
     
    180180  <property name="hidden_readonly_layout_modes"/>
    181181  <property name="display_width">10</property>
     182 </widget>
     183 <widget name="jamb_score" meta_type="String Widget">
     184  <property name="title">JAMB Score</property>
     185  <property name="fields">
     186   <element value="jamb_score"/>
     187  </property>
     188  <property name="label">JAMB Score</property>
     189  <property name="label_edit">JAMB Score</property>
     190  <property name="readonly_layout_modes"/>
     191  <property name="hidden_layout_modes"/>
     192  <property name="hidden_readonly_layout_modes"/>
     193  <property name="display_width">3</property>
    182194 </widget>
    183195 <widget name="matric_no" meta_type="String Widget">
     
    250262  <row>
    251263   <cell name="jamb_reg_no"/>
     264  </row>
     265  <row>
     266   <cell name="jamb_score"/>
    252267  </row> 
    253268  <row>
  • WAeUP_SRP/trunk/skins/waeup_student/getSessionResults.py

    r1684 r1753  
    4747student_from_cat = res[0]
    4848
    49 res = returning(matric_no = matric_no)
    50 if res:
    51     student_from_returning = res[0]
    52 else:
    53     return None
     49#res = returning(matric_no = matric_no)
     50#if res:
     51#    student_from_returning = res[0]
     52#else:
     53#    return None
    5454
    5555res = results(matric_no = matric_no)
     
    123123info['gpa'] = gpa
    124124info['results'] = (sem1, sem2)
    125 info['student_from_returning'] = student_from_returning
     125#info['student_from_returning'] = student_from_returning
    126126info['student'] = student_from_cat
    127127info['s_id'] = student_id
  • WAeUP_SRP/trunk/skins/waeup_student/session_results_view.pt

    r1679 r1753  
    2727        </tr>
    2828        <tr>
    29           <th valign="top">Course of Study:</th><td tal:content="info/student_from_returning/Coursemajor" />                     
     29          <th valign="top">Course of Study:</th><td tal:content="info/student/course" />                     
    3030        </tr>
    3131        <tr>
Note: See TracChangeset for help on using the changeset viewer.