Changeset 2281 for WAeUP_SRP


Ignore:
Timestamp:
27 Sep 2007, 16:26:41 (17 years ago)
Author:
joachim
Message:

remove some old stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_academics/getLevelInfo.py

    r1631 r2281  
    4545    ro = r.getObject()
    4646    rd = ro.getContent()
    47     course_id = row['id'] = r.getId
    48     row['title'] = rd.Title()
     47    course_id = r.getId
     48    row = context.getCourseInfo(course_id)
     49    row['id'] = course_id
     50    # row['title'] = rd.Title()
     51    # row['semester'] = rd.semester
    4952    row['core'] = rd.core_or_elective
    50     row['semester'] = rd.semester
    5153    row['url'] = ro.absolute_url()
    5254    row['review_state'] = wf.getInfoFor(ro,'review_state','None')
    5355    editable = row['is_editable'] = mtool.checkPermission('Modify portal content', ro)
    5456    if editable:
    55         course_res = context.courses_catalog(code=course_id)
    56         if course_res:
    57             rc = course_res[0]
    58             row['real_course_path'] = "%s/%s/%s/courses/%s" % (academics_path,rc.faculty,rc.department,course_id)
    59     if rd.semester == 'first':
     57        row['real_course_path'] = "%s/%s/%s/courses/%s" % (academics_path,
     58                                                           row['faculty'],
     59                                                           row['department'],
     60                                                           course_id)
     61    if row['semester'] == 1:
    6062        first.append(row)
    6163    else:
Note: See TracChangeset for help on using the changeset viewer.