Changeset 1653 for WAeUP_SRP/branches/uli/skins/waeup_academics
- Timestamp:
- 28 Mar 2007, 02:35:25 (18 years ago)
- Location:
- WAeUP_SRP/branches/uli/skins/waeup_academics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/branches/uli/skins/waeup_academics/getCertificateInfo.py
r913 r1653 18 18 19 19 info = {} 20 info['action'] = "%s" % context. campus.absolute_url()20 info['action'] = "%s" % context.absolute_url() 21 21 info['choosen_ids'] = request.get('ids',[]) 22 22 info['doc'] = context.getContent() -
WAeUP_SRP/branches/uli/skins/waeup_academics/getLevelInfo.py
r1514 r1653 16 16 wf = context.portal_workflow 17 17 mtool = context.portal_membership 18 academics_path = "%s/campus/academics" % context.portal_url() 18 19 path_info = request.get('PATH_INFO').split('/') 19 20 try: … … 44 45 ro = r.getObject() 45 46 rd = ro.getContent() 46 row['id'] = r.getId47 course_id = row['id'] = r.getId 47 48 row['title'] = rd.Title() 48 49 row['core'] = rd.core_or_elective … … 50 51 row['url'] = ro.absolute_url() 51 52 row['review_state'] = wf.getInfoFor(ro,'review_state','None') 52 row['is_editable'] = mtool.checkPermission('Modify portal content', ro) 53 editable = row['is_editable'] = mtool.checkPermission('Modify portal content', ro) 54 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) 53 59 if rd.semester == 'first': 54 60 first.append(row) -
WAeUP_SRP/branches/uli/skins/waeup_academics/level_view.pt
r1511 r1653 48 48 [edit] 49 49 </a> 50 <a tal:condition="row/real_course_path|nothing" 51 href="edit" tal:attributes="href string:${row/real_course_path}"> 52 [goto course] 53 </a> 50 54 </td> 51 55 </tr>
Note: See TracChangeset for help on using the changeset viewer.