Ignore:
Timestamp:
25 Jan 2007, 20:49:22 (18 years ago)
Author:
Henrik Bettermann
Message:

simulate callback disabled
performance of getReviewInfo improved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_default/getReviewInfo.py

    r1191 r1355  
    2323if context.portal_type != "Student":
    2424    student_id = context.getStudentId()
    25     res = context.portal_catalog(id = student_id,portal_type='Student')
    26     if res:
    27         s_review = res[-1].review_state
    28         return "%s / %s" % (s_review,d_review)
     25    if student_id:
     26        res = context.portal_catalog(id = student_id,portal_type='Student')
     27        if res:
     28            s_review = res[-1].review_state
     29            return "%s / %s" % (s_review,d_review)
    2930return "%s" % (d_review)
    3031
Note: See TracChangeset for help on using the changeset viewer.