Changeset 2281 for WAeUP_SRP/base/skins
- Timestamp:
- 27 Sep 2007, 16:26:41 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_academics/getLevelInfo.py
r1631 r2281 45 45 ro = r.getObject() 46 46 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 49 52 row['core'] = rd.core_or_elective 50 row['semester'] = rd.semester51 53 row['url'] = ro.absolute_url() 52 54 row['review_state'] = wf.getInfoFor(ro,'review_state','None') 53 55 editable = row['is_editable'] = mtool.checkPermission('Modify portal content', ro) 54 56 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 r d.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: 60 62 first.append(row) 61 63 else:
Note: See TracChangeset for help on using the changeset viewer.