Changeset 598 for WAeUP_SRP/trunk/skins
- Timestamp:
- 29 Sep 2006, 16:16:02 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_academics
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_academics/academics_index.py
r556 r598 22 22 campus = context.portal_catalog(meta_type = "University")[-1].getObject() 23 23 member = pm.getAuthenticatedMember() 24 roles = member.getRoles ()24 roles = member.getRolesInContext(context) 25 25 isManager = "Manager" in roles or "SectionManager" in roles 26 26 isStudent = "Student" in roles 27 isStaff = "Staff" in roles 27 28 28 if is Manager:29 if isStaff or isManager: 29 30 if context.portal_type == 'AcademicsFolder': 30 31 return context.academics.academics_index_view() -
WAeUP_SRP/trunk/skins/waeup_academics/courses_index_view.pt
r571 r598 65 65 <strong tal:content="row/title" /></a> </td> 66 66 <td tal:content="row/id"> </td> 67 <td tal:con tent="row/review_state"> </td>68 <td ><a href="edit" tal:attributes="href string:${row/url}/cpsdocument_edit_form">[edit]</a></td>67 <td tal:condition="row/is_editable" tal:content="row/review_state"> </td> 68 <td tal:condition="row/is_editable"><a href="edit" tal:attributes="href string:${row/url}/cpsdocument_edit_form">[edit]</a></td> 69 69 </tr> 70 70 </span> -
WAeUP_SRP/trunk/skins/waeup_academics/faculty_index_view.pt
r597 r598 39 39 40 40 <td> 41 <<<<<<< .mine 42 <a tal:condition="row/is_editable" 43 ======= 41 44 <a tal:condition="row/is_edit_allowed" 45 >>>>>>> .r597 42 46 href="edit" tal:attributes="href string:${row/url}/external_edit_form" 43 47 target="edit" -
WAeUP_SRP/trunk/skins/waeup_academics/getCoursesInfo.py
r573 r598 48 48 row['url'] = ro.absolute_url() 49 49 row['review_state'] = wf.getInfoFor(ro,'review_state','None') 50 row['is_editable'] = mtool.checkPermission('Modify portal content', ro) 50 51 items.append(row) 51 52 info['courses'] = items -
WAeUP_SRP/trunk/skins/waeup_academics/getDepartmentsInfo.py
r597 r598 21 21 info = {} 22 22 member_id = str(member) 23 roles = member.getRoles ()23 roles = member.getRolesInContext(context) 24 24 info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles 25 25 info['is_student'] = 'Student' in roles … … 39 39 row['title'] = rd.LongTitle() 40 40 row['url'] = ro.absolute_url() 41 row['is_edit _allowed'] = mtool.checkPermission('Modify portal content', ro)41 row['is_editable'] = mtool.checkPermission('Modify portal content', ro) 42 42 items.append(row) 43 43 info['items'] = items -
WAeUP_SRP/trunk/skins/waeup_academics/getLevelInfo.py
r573 r598 55 55 row['url'] = ro.absolute_url() 56 56 row['review_state'] = wf.getInfoFor(ro,'review_state','None') 57 row['is_editable'] = mtool.checkPermission('Modify portal content', ro) 57 58 if rd.semester == 'first': 58 59 first.append(row) -
WAeUP_SRP/trunk/skins/waeup_academics/level_index_view.pt
r573 r598 40 40 <td tal:content="row/id"></td> 41 41 <td tal:content="python: test(row['core'],'core','elective')"></td> 42 <td tal:con tent="row/review_state"> </td>43 <td ><a href="edit" tal:attributes="href string:${row/url}/cpsdocument_edit_form">[edit]</a></td>42 <td tal:condition="row/is_editable" tal:content="row/review_state"> </td> 43 <td tal:condition="row/is_editable" ><a href="edit" tal:attributes="href string:${row/url}/cpsdocument_edit_form">[edit]</a></td> 44 44 </tr> 45 45 </span>
Note: See TracChangeset for help on using the changeset viewer.