Changeset 888 for WAeUP_SRP/trunk/skins/waeup_default
- Timestamp:
- 17 Nov 2006, 21:28:48 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_default/isManager.py
r885 r888 12 12 mtool = context.portal_membership 13 13 roles = mtool.getAuthenticatedMember().getRolesInContext(context) 14 return "Manager" in roles 14 return "SectionManager" in roles or\ 15 "Manager" in roles -
WAeUP_SRP/trunk/skins/waeup_default/portlet_waeup_status_display.pt
r863 r888 1 <metal:block define-macro="status_display"> 1 2 <tal:block define="item nocall:options/context_obj; 2 info item/getContentInfo; 3 item_info item/getContentInfo; 4 student_info item/getStudentInfo; 3 5 base_url python: request.get('cpsskins_base_url'); 4 status_list python: ['checked', 'unchecked', 'opened', 'closed', 5 'created', 'student_created', 'application_pin_entered', 6 'admission_applied', 7 'cleared_and_validated', 8 'pume_passed', 9 'pume_failed', 10 'admitted', 11 'deferred', 12 'objection_raised', 13 'admission_rejected', 14 'finally_rejected', 15 'clearance_pin_entered', 16 'category_A', 17 'category_B', 18 'category_C', 19 'category_D', 20 'category_E', 21 'category_F', 22 'content_addable', 23 'bed_reserved', 24 'maintenance_fee_paid'];"> 6 states_not_shown python: ('work',);"> 25 7 26 <span tal:condition="python:path('info/review_state') in status_list ">27 <span tal:content="info/review_state" />28 </ span>29 8 9 <span tal:condition="python:path('item_info/review_state') not in states_not_shown "> 10 11 <span tal:condition="student_info"> 12 <span tal:content="student_info/review_state" /> 13 <span tal:condition="python:item_info['review_state']!=student_info['review_state']"> 14 / <span tal:content="item_info/review_state" /> 15 </span> 16 </ span> 17 18 <span tal:condition="not: student_info"> 19 <span tal:content="item_info/review_state" /> 20 </span> 21 22 </span> 30 23 </tal:block> 24 </metal:block> 31 25 26
Note: See TracChangeset for help on using the changeset viewer.