Changeset 1315


Ignore:
Timestamp:
17 Jan 2007, 17:38:41 (18 years ago)
Author:
joachim
Message:

M skins/waeup_student/getFormattedStudentEntry.py
do the sex right.
M skins/waeup_student/getSessionResults.py
remove wrong getattr(student,'clearance')
M profiles/default/schemas/student_study_course.xml
removed redundant fields

Location:
WAeUP_SRP/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/schemas/student_study_course.xml

    r727 r1315  
    11<?xml version="1.0"?>
    22<object name="student_study_course" meta_type="CPS Schema">
    3 <field name="title" meta_type="CPS String Field"/>
    4 <field name="study_course" meta_type="CPS String Field">
    5 <property name="is_searchabletext">True</property>
    6 </field>
    7  <field name="faculty" meta_type="CPS String Field">
     3  <field name="title" meta_type="CPS String Field"/>
     4  <field name="study_course" meta_type="CPS String Field">
    85    <property name="is_searchabletext">True</property>
    9 </field>
    10  <field name="department" meta_type="CPS String Field">
    11     <property name="is_searchabletext">True</property>
    12 </field>
    13  <field name="max_elect" meta_type="CPS String Field"/>
    14  <field name="max_load" meta_type="CPS Int Field"/>
    15  <field name="max_pass" meta_type="CPS Int Field"/>
    16  <field name="n_core" meta_type="CPS Int Field"/>
    17  <field name="nr_years" meta_type="CPS Int Field"/>
    18  <field name="probation_credits" meta_type="CPS Int Field"/>
    19  <field name="promotion_credits" meta_type="CPS Int Field"/>
    20  <field name="start_level" meta_type="CPS String Field"/>
    21  <field name="end_level" meta_type="CPS String Field"/>
     6  </field>
     7  <field name="current_level" meta_type="CPS String Field"/>
    228</object>
  • WAeUP_SRP/trunk/skins/waeup_student/getFormattedStudentEntry.py

    r1314 r1315  
    1818    d[f] = getattr(brain,f,'--')
    1919    if f == "sex":
    20         d[f] = 'M'
    2120        if d[f]:
    22             d[f] = 'F'
     21            d[f] = 'F'
     22        else:
     23            d[f] = 'M'
    2324    elif f == "name":
    2425        d[f] = d[f].strip()
  • WAeUP_SRP/trunk/skins/waeup_student/getSessionResults.py

    r1258 r1315  
    4141
    4242students_object = context.portal_url.getPortalObject().campus.students
    43 student = getattr(students_object, student_id)
    44 
    45 
    46 clear = getattr(student,'clearance',None)
    47 if clear:
    48     value = clear.getContent().matric_no
    49 else:
    50     return None
     43##student = getattr(students_object, student_id)
     44##clear = getattr(student,'clearance',None)
     45##if clear:
     46##    value = clear.getContent().matric_no
     47##else:
     48##    return None
    5149
    5250res = returning(matric_no = value)
Note: See TracChangeset for help on using the changeset viewer.