Ignore:
Timestamp:
1 Jan 2007, 22:54:52 (18 years ago)
Author:
Henrik Bettermann
Message:

made login after createReturningStudent work
session_result_view is not yet ready

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
1 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/createReturningStudent.py

    r1170 r1171  
    2121#if str(member) not in ("admin","joachim"):
    2222#    return "not possible"
    23 def createOne(student_brain):
    24     sid = context.waeup_tool.generateStudentId('?')
    25     students_folder.invokeFactory('Student', sid)
    26     student = getattr(students_folder,sid)
    27     wftool.doActionFor(student,'return')
    28     student.manage_setLocalRoles(sid, ['Owner',])
    29     jamb_reg_no = student_brain.Entryregno,
    30     context.students_catalog.addRecord(id = sid,
    31                                        matric_no = matric_no,
    32                                        jamb_reg_no = jamb_reg_no,
    33                                        sex = student_brain.Sex == "F",
    34                                        name = "%s %s %s" % (student_brain.Firstname,
    35                                                             student_brain.Middlename,
    36                                                             student_brain.Lastname)
    37                                     )
    38     return sid,jamb_reg_no
     23
     24
     25#defined in WAeUPTool.py
     26
     27# def createOne(student_brain):
     28#     sid = context.waeup_tool.generateStudentId('?')
     29#     students_folder.invokeFactory('Student', sid)
     30#     student = getattr(students_folder,sid)
     31#     wftool.doActionFor(student,'return')
     32#     student.manage_setLocalRoles(sid, ['Owner',])
     33#     jamb_reg_no = student_brain.Entryregno,
     34#     context.students_catalog.addRecord(id = sid,
     35#                                        matric_no = matric_no,
     36#                                        jamb_reg_no = jamb_reg_no,
     37#                                        sex = student_brain.Sex == "F",
     38#                                        name = "%s %s %s" % (student_brain.Firstname,
     39#                                                             student_brain.Middlename,
     40#                                                             student_brain.Lastname)
     41#                                     )
     42#     return sid,jamb_reg_no
    3943
    4044if not matric_no:
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py

    r1167 r1171  
    6868info['url'] = student.absolute_url()
    6969info['student_doc'] = student.getContent()
    70 info['app'] = student.application
    71 info['app_doc'] = student.application.getContent()
    72 info['per'] = getattr(student,'personal',None)
    73 info['sex'] = 'male'
    74 if info['per'] is not None:
    75     info['per_doc'] = student.personal.getContent()
    76     if info['per_doc'].sex:
    77         info['sex'] = 'female'
    78 else:
    79     if info['app_doc'].jamb_sex == "F":
    80         info['sex'] = 'female'
     70#info['app'] = student.application
     71#info['app_doc'] = student.application.getContent()
     72#info['per'] = getattr(student,'personal',None)
     73#info['sex'] = 'male'
     74#if info['per'] is not None:
     75#    info['per_doc'] = student.personal.getContent()
     76#    if info['per_doc'].sex:
     77#        info['sex'] = 'female'
     78#else:
     79#    if info['app_doc'].jamb_sex == "F":
     80#        info['sex'] = 'female'
    8181course = getattr(student,'study_course',None)
    8282if course:
  • WAeUP_SRP/trunk/skins/waeup_student/personal_view.pt

    r1167 r1171  
    1616        <br />
    1717        <span tal:omit-tag=""
    18               tal:content="structure python: info['app_doc'].render(proxy=info['per_doc'],
     18              tal:content="structure python: info['per_doc'].render(proxy=info['per_doc'],
    1919              layout_mode='view',
    2020              layout_id='student_personal_fe')"
  • WAeUP_SRP/trunk/skins/waeup_student/reserve_accommodation.py

    r1161 r1171  
    2626session = acco_id[-4:]
    2727mode = 'create'
    28 if info['review_state'] != 'cleared_and_validated':
     28if not info['review_state'] in ('cleared_and_validated',):
    2929    return context.REQUEST.RESPONSE.redirect("%s/no_booking_allowed" % info['student'].absolute_url())
    3030validate = REQUEST.has_key("cpsdocument_create_button")
  • WAeUP_SRP/trunk/skins/waeup_student/search_students_form.pt

    r1096 r1171  
    6969                  <span tal:replace="student/name" />
    7070                </td>   
    71                 <td><span tal:replace="student/jamb_reg_no" /></td>   
     71                <td><span tal:replace="student/matric_no" /></td>   
     72                <td><span tal:replace="student/jamb_reg_no" /></td>
    7273                <td tal:condition="options/co_view|nothing">
    7374                       <a href="id"
Note: See TracChangeset for help on using the changeset viewer.