Changeset 2478


Ignore:
Timestamp:
30 Oct 2007, 13:19:19 (17 years ago)
Author:
Henrik Bettermann
Message:

enable import of previous_verdict

Location:
WAeUP_SRP
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTool.py

    r2467 r2478  
    12291229                              'current_mode',
    12301230                              'current_verdict',
     1231                              'previous_verdict',
    12311232                              )
    12321233                              },
     
    13571358                for field in intersect:
    13581359                    changed = False
    1359                     if getattr(sub_doc,field) != mapping.get(field,''):
     1360                    if getattr(sub_doc,field,None) != mapping.get(field,''):
    13601361                        any_change = True
    13611362                        changed = True
  • WAeUP_SRP/base/skins/waeup_utilities/fix06Verdict.py

    r2475 r2478  
    3333#logger.info('')
    3434
    35 query = ~ Eq('verdict','N/A') & In('session',('2006/2007','06','6'))
     35query = ~ Eq('verdict','N/A') & ~ Eq('verdict','') & In('session',('2006/2007','06','6'))
    3636brains = aq_students(query)
    3737total = len(brains)
  • WAeUP_SRP/fceokene/profiles/default/layouts/import_student.xml

    r2430 r2478  
    203203  <property name="sorted">True</property>
    204204 </widget>
     205 <widget name="previous_verdict" meta_type="WAeUP Verdict Widget">
     206  <property name="title">Previous Verdict</property>
     207  <property name="fields">
     208   <element value="previous_verdict"/>
     209  </property>
     210  <property name="label">Previous Verdict</property>
     211  <property name="label_edit">Previous Verdict</property>
     212  <property name="description">The verdict of the previous level</property>
     213  <property name="help">The verdict of the previous level</property>
     214  <property name="readonly_layout_modes"/>
     215  <property name="hidden_layout_modes"/>
     216  <property name="hidden_readonly_layout_modes"/>
     217  <property name="vocabulary">verdicts</property>
     218  <property name="sorted">True</property>
     219 </widget>
    205220 <widget name="entry_session" meta_type="WAeUP Session Widget">
    206221  <property name="title">Entry Session</property>
     
    386401  </row>
    387402  <row>
     403   <cell name="previous_verdict"/>
     404  </row> 
     405  <row>
    388406   <cell name="jamb_reg_no"/>
    389407  </row>
  • WAeUP_SRP/fceokene/profiles/default/schemas/import_student.xml

    r2302 r2478  
    2626 <field name="current_session" meta_type="CPS String Field"/>
    2727 <field name="current_verdict" meta_type="CPS String Field"/>
     28 <field name="previous_verdict" meta_type="CPS String Field"/>
    2829 <field name="current_mode" meta_type="CPS String Field"/>
    2930 <field name="perm_address" meta_type="CPS String Field"/>
Note: See TracChangeset for help on using the changeset viewer.