Changeset 2564 for WAeUP_SRP/base/skins
- Timestamp:
- 7 Nov 2007, 10:50:54 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_directory
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_directory/getMembersDirectoryActions.py
r2348 r2564 1 ## Script (Python) "getMembersDirectoryActions" 2 ##bind container=container 3 ##bind context=context 4 ##bind namespace= 5 ##bind script=script 6 ##bind subpath=traverse_subpath 1 7 ##parameters=mode 2 8 #$Id$ … … 11 17 def set_trace(): 12 18 pass 19 if context.isStudent(): 20 return context.REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 13 21 14 22 from Products.CMFCore.utils import getToolByName -
WAeUP_SRP/base/skins/waeup_directory/getWAeUPGroups.py
r1945 r2564 1 ## Script (Python) "getWAeUPGroups" 2 ##bind container=container 3 ##bind context=context 4 ##bind namespace= 5 ##bind script=script 6 ##bind subpath=traverse_subpath 1 7 ##parameters=key=None 2 8 # $Id$ 3 9 """ 4 Retu rn the groups as an vocabulary10 Retun the groups as an vocabulary 5 11 6 12 """ 13 if context.isStudent(): 14 return context.REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 15 7 16 groups = context.portal_directories.groups.searchEntries(group='*') 8 17 if key is None: -
WAeUP_SRP/base/skins/waeup_directory/search_members_form.pt
r1917 r2564 3 3 global dir here/portal_directories/?dirname; 4 4 global dirtitle dir/title_or_id; 5 "/> 5 global allowed context/isStaff;" 6 /> 6 7 <metal:block use-macro="here/main_template/macros/master" > 7 <metal:block fill-slot="action_slot" 8 <metal:block tal:condition="allowed" 9 fill-slot="action_slot" 8 10 tal:define="actions python:context.getMembersDirectoryActions('search')"> 9 11 <span metal:use-macro="here/member_view/macros/members_actions" /> 10 12 </metal:block> 11 <metal:block fill-slot="main" tal:define=" 13 <metal:block fill-slot="main"> 14 <metal:block tal:condition="not: allowed"> 15 <span tal:content="here/illegal_view" /> 16 </metal:block> 17 <metal:block tal:condition="allowed"> 18 <metal:block 19 tal:define=" 12 20 validate python: request.has_key('cpsdirectory_search_button'); 13 21 res python: dir.renderSearchDetailed(request=request, validate=validate, … … 17 25 ds python: res[2]; 18 26 global portal_status_message python: (validate and not ok and 19 'psm_content_error') or request.form.get('portal_status_message', '');"> 20 <h3> 21 Search Member Section 22 </h3> 23 <br /> 24 <div tal:replace="structure rendered_main">Rendered main...</div> 27 'psm_content_error') or request.form.get('portal_status_message', '');" 28 > 29 <h3> 30 Search Member Section 31 </h3> 32 <br /> 33 <div tal:replace="structure rendered_main">Rendered main...</div> 34 </metal:block> 35 </metal:block> 25 36 </metal:block> 26 37 </metal:block>
Note: See TracChangeset for help on using the changeset viewer.