Changeset 765 for WAeUP_SRP/trunk


Ignore:
Timestamp:
27 Oct 2006, 11:34:06 (18 years ago)
Author:
joachim
Message:

pume import addopted
searchStudents-results now sorted by student_id

Location:
WAeUP_SRP/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r764 r765  
    243243                 'days': "Days",
    244244                 'response': "Responce",
    245                  'right': "Right",
    246245                 'wrong': "Wrong",
    247246                 'pume_eng_score': "EngScore",
     
    338337                         )
    339338            for f in dp_fields:
    340                 da[f] = jamb.get(csv_d[f])
    341             pume = student.application
    342             pume.getContent().edit(mapping=da)
     339                dp[f] = jamb.get(csv_d[f])
     340            pume = student.pume
     341            pume.getContent().edit(mapping=dp)
    343342            wftool.doActionFor(pume,'close',dest_container=app)
    344343            pume.manage_setLocalRoles(sid, ['Owner',])
  • WAeUP_SRP/trunk/__init__.py

    r760 r765  
    5050         "StudentPersonal",
    5151         "StudentStudyLevel",
    52          #"StudentSemester",
    5352         #"Semester",
    5453         "StudentCourseResult",
  • WAeUP_SRP/trunk/profiles/default/workflows.xml

    r742 r765  
    7474   <bound-workflow workflow_id="waeup_student_subobject_wf"/>
    7575  </type>
     76  <type type_id="StudentPume">
     77   <bound-workflow workflow_id="waeup_student_subobject_wf"/>
     78  </type>
    7679  <type type_id="StudentStudyCourse">
    7780   <bound-workflow workflow_id="waeup_student_subobject_wf"/>
  • WAeUP_SRP/trunk/skins/waeup_student/searchStudents.py

    r755 r765  
    1717except:
    1818    evalAdvancedQuery = None
     19
     20def cmp_id(a,b):
     21    if a.getId() > b.getId():
     22        return 1
     23    return -1
    1924
    2025request = context.REQUEST
     
    147152    items.append(a)
    148153students = []
     154items.sort(cmp_id)
    149155if items:
    150156    for item in items:
  • WAeUP_SRP/trunk/skins/waeup_student/student_index.py

    r742 r765  
    3434    elif state == 'application_pin_entered':
    3535        return redirect("%s/passport_entry_view" % student.absolute_url())
     36    elif context.portal_type == 'StudentStudyLevel':
     37        return context.study_level_student_view()
    3638    return redirect("%s/student_view" % student.absolute_url())
    3739
Note: See TracChangeset for help on using the changeset viewer.