Ignore:
Timestamp:
21 Oct 2007, 06:21:25 (17 years ago)
Author:
Henrik Bettermann
Message:

put comments into logged_in.py

remove pume-object-relevant code

(but ensure that existing pume objects are not displayed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/getStudentInfo.py

    r2043 r2407  
    5757if student is None or student.portal_type != "Student":
    5858    return None
    59 ##res = context.portal_catalog(id = student_id,portal_type='Student')
    60 ##if not res:# or len(res) > 1:
    61 ##    return None
    62 ##brain = res[-1]
    63 ##student = brain.getObject()
    6459
    6560info['review_state'] = context.getStudentReviewState()
     
    7065info['app'] = student.application
    7166info['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'
     67
    8168course = getattr(student,'study_course',None)
    8269if course:
     
    9582    else:
    9683        info['course'] = None
    97 #
    98 
    99 #clear = getattr(student,'clearance',None)
    100 #info['clear'] = clear
    101 #if clear is not None:
    102 #    info['clear_doc'] = clear.getContent()
    103 #    info['clear_review_state'] = wf.getInfoFor(clear,'review_state',None)
    104 #
    105 #pume = getattr(student,'pume',None)
    106 #info['pume'] = pume
    107 #if pume is not None:
    108 #    info['pume_doc'] = pume.getContent()
    109 #    info['pume_review_state'] = wf.getInfoFor(pume,'review_state',None)
    110 #else:
    111 #    info['pume'] = None
    11284
    11385if not with_items:
Note: See TracChangeset for help on using the changeset viewer.