Changeset 573 for WAeUP_SRP/trunk/skins/waeup_academics
- Timestamp:
- 27 Sep 2006, 21:45:50 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_academics
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_academics/approve_checked.py
r486 r573 13 13 """ 14 14 15 ret_url = context.absolute_url() + '/academics_ contents'15 ret_url = context.absolute_url() + '/academics_index' 16 16 17 17 if ids: -
WAeUP_SRP/trunk/skins/waeup_academics/getCertificateInfo.py
r556 r573 24 24 info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles 25 25 info['is_student'] = 'Student' in roles 26 info['action'] = "%s /academics_index_view" % context.campus.absolute_url()26 info['action'] = "%s" % context.campus.absolute_url() 27 27 info['choosen_ids'] = request.get('ids',[]) 28 28 info['doc'] = context.getContent() -
WAeUP_SRP/trunk/skins/waeup_academics/getCoursesInfo.py
r570 r573 21 21 info = {} 22 22 member_id = str(member) 23 dep_id = request.get('PATH_TRANSLATED').split('/')[-2] 23 #dep_id = request.get('PATH_TRANSLATED').split('/')[-2] 24 dep_id = context.aq_parent.getId() 24 25 roles = member.getRoles() 25 26 info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles 26 27 info['is_student'] = 'Student' in roles 27 info['action'] = "%s /faculty_index_view" % context.absolute_url()28 info['action'] = "%s" % context.absolute_url() 28 29 info['choosen_ids'] = request.get('ids',[]) 29 30 info['doc'] = context.getContent() -
WAeUP_SRP/trunk/skins/waeup_academics/getDepartmentsInfo.py
r551 r573 24 24 info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles 25 25 info['is_student'] = 'Student' in roles 26 info['action'] = "%s /faculty_index_view" % context.absolute_url()26 info['action'] = "%s" % context.absolute_url() 27 27 info['choosen_ids'] = request.get('ids',[]) 28 28 items = [] -
WAeUP_SRP/trunk/skins/waeup_academics/getFacultiesInfo.py
r551 r573 24 24 info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles 25 25 info['is_student'] = 'Student' in roles 26 info['action'] = "%s /academics_index_view" % context.campus.absolute_url()26 info['action'] = "%s" % context.campus.absolute_url() 27 27 info['choosen_ids'] = request.get('ids',[]) 28 28 items = [] -
WAeUP_SRP/trunk/skins/waeup_academics/getLevelInfo.py
r571 r573 18 18 member = mtool.getAuthenticatedMember() 19 19 path_info = request.get('PATH_INFO').split('/') 20 20 try: 21 i = int(path_info[-1]) 22 p = 0 23 except: 24 p = 1 21 25 info = {} 22 26 member_id = str(member) 23 27 pt = request.get('PATH_TRANSLATED').split('/') 24 dep_id = pt[-3] 25 cert_id = pt[-2] 26 level_id = pt[-1] 28 29 dep_id = pt[-(3+p)] 30 cert_id = pt[-(2+p)] 31 level_id = pt[-(1+p)] 27 32 roles = member.getRoles() 28 33 info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles 29 34 info['is_student'] = 'Student' in roles 30 info['action'] = "%s /faculty_index_view" % context.absolute_url()35 info['action'] = "%s" % context.absolute_url() 31 36 info['choosen_ids'] = request.get('ids',[]) 32 37 info['doc'] = context.getContent() … … 49 54 row['semester'] = rd.semester 50 55 row['url'] = ro.absolute_url() 56 row['review_state'] = wf.getInfoFor(ro,'review_state','None') 51 57 if rd.semester == 'first': 52 58 first.append(row) -
WAeUP_SRP/trunk/skins/waeup_academics/level_index_view.pt
r566 r573 35 35 checked python:id in info['choosen_ids'];" 36 36 /> 37 </td> 38 <td><a href="view" tal:attributes="href string:${row/url}"> 39 <strong tal:content="row/title" /></a> </td> 40 <td tal:content="row/id"></td> 41 <td tal:content="python: test(row['core'],'core','elective')"></td> 42 </tr> 43 </span> 44 </table> 37 </td> 38 <td><a href="view" tal:attributes="href string:${row/url}"> 39 <strong tal:content="row/title" /></a> </td> 40 <td tal:content="row/id"></td> 41 <td tal:content="python: test(row['core'],'core','elective')"></td> 42 <td tal:content="row/review_state"> </td> 43 <td><a href="edit" tal:attributes="href string:${row/url}/cpsdocument_edit_form">[edit]</a></td> 44 </tr> 45 </span> 46 </table> 45 47 <table width="100%" cellspacing="0" cellpadding="2" 46 48 class="folderButtons"> -
WAeUP_SRP/trunk/skins/waeup_academics/retract_checked.py
r486 r573 13 13 """ 14 14 15 ret_url = context.absolute_url() + '/academics_ contents'15 ret_url = context.absolute_url() + '/academics_index' 16 16 17 17 if ids:
Note: See TracChangeset for help on using the changeset viewer.