source: WAeUP_SRP/trunk/profiles/default/actions.xml @ 880

Last change on this file since 880 was 874, checked in by joachim, 18 years ago

first draft of view for ClearanceOfficers?
steps to make it work:

  1. Create a group CLearanceOfficers
  2. delegate SectionReader? to this Group in students
  3. Put the supposed CO's in this Group
  4. modify the cpsskinstheme like so:

if context.isStaff():

return 'WAeUP_Backoffice'

return 'WAeUP_Student'

  • Property svn:keywords set to Id
File size: 9.8 KB
RevLine 
[293]1<?xml version="1.0"?>
2<object name="portal_actions" meta_type="CMF Actions Tool">
3 <action-provider name="portal_membership">
[818]4  <action title="Search Members" action_id="member_view" category="user"
5     condition_expr="member"
6     url_expr="string:${portal_url}/cpsdirectory_entry_search_form?dirname=members"
7     visible="False">
8   <permission>View</permission>
9  </action>
[781]10  <action title="Student Login" action_id="login" category="user"
[560]11     condition_expr="not: member"
[818]12     url_expr="string:${portal_url}/login_student" visible="True">
[560]13   <permission>View</permission>
14  </action>
[544]15  <action title="Staff Login" action_id="login_staff" category="student"
[293]16     condition_expr="not: member"
[543]17     url_expr="python:&quot;%s/login_staff?%s&quot; % (portal_url, modules[&quot;urllib&quot;].urlencode({&quot;came_from&quot;: request.URL}))"
[293]18     visible="True">
19   <permission>View</permission>
20  </action>
21  <action title="Log out" action_id="logout" category="user"
22     condition_expr="member" url_expr="string:${portal_url}/logout"
23     visible="True">
24   <permission>View</permission>
25  </action>
26  <action title="My stuff" action_id="mystuff" category="user"
27     condition_expr="python: member and portal.portal_membership.getHomeFolder()"
28     url_expr="string:${portal/portal_membership/getHomeUrl}/folder_contents"
29     visible="True">
30   <permission>View</permission>
31  </action>
32  <action title="action_my_preferences" action_id="preferences"
33     category="user"
34     condition_expr="python:member and member.has_role(&quot;Member&quot;)"
35     url_expr="string:${portal_url}/cpsdirectory_entry_view?dirname=members&amp;id=${member}"
36     visible="True">
37   <permission>View</permission>
38  </action>
[543]39  <action title="Student Login" action_id="login_student" category="student"
[508]40     condition_expr="not:member"
41     url_expr="python:&quot;%s/login_student?%s&quot; % (portal_url, modules[&quot;urllib&quot;].urlencode({&quot;came_from&quot;: request.URL}))"
42     visible="True">
43   <permission>View</permission>
44  </action>
[544]45  <action title="Log out" action_id="logout_student" category="student"
[508]46     condition_expr="member" url_expr="string:${portal_url}/logout"
47     visible="True"/>
[293]48 </action-provider>
49 <action-provider name="portal_actions">
50  <action title="action_portlets" action_id="portlets" category="folder"
51     condition_expr="member"
52     url_expr="string:${folder_url}/portlet_manage_form" visible="True">
53   <permission>Manage Portlets</permission>
54  </action>
55  <action title="action_accessibility" action_id="accessibility"
56     category="global_header" condition_expr=""
[300]57     url_expr="string:${portal_url}/accessibility" visible="False">
[293]58   <permission>View</permission>
59  </action>
60  <action title="action_print" action_id="print" category="global_header"
61     condition_expr=""
62     url_expr="string:javascript:if%20(window.print)%20window.print();"
[300]63     visible="False">
[293]64   <permission>View</permission>
65  </action>
66  <action title="action_advanced_search" action_id="advanced_search"
67     category="global_header" condition_expr=""
68     url_expr="string:./advanced_search_form" visible="True">
69   <permission>View</permission>
70  </action>
71  <action title="action_contact" action_id="contact" category="global_header"
72     condition_expr=""
73     url_expr="string:mailto:${portal/portal_properties/email_from_address}?subject=Info"
[300]74     visible="False">
[293]75   <permission>View</permission>
76  </action>
77  <action title="action_manage_vocabularies" action_id="manage_vocabularies"
78     category="global" condition_expr=""
[300]79     url_expr="string:${portal_url}/vocabularies_manage_form" visible="False">
[293]80   <permission>Modify portal content</permission>
81  </action>
82  <action title="action_add_favorites" action_id="add_favorites"
83     category="user"
84     condition_expr="python: member and portal.portal_membership.getHomeFolder()"
85     url_expr="string:${object/absolute_url}/addtoFavorites" visible="False">
86   <permission>View</permission>
87  </action>
88  <action title="action_view_favorites" action_id="view_favorites"
89     category="user"
90     condition_expr="python: hasattr(portal.portal_membership.getHomeFolder(),&quot;Favorites&quot;)"
91     url_expr="string:${portal/portal_membership/getHomeUrl}/Favorites"
92     visible="False">
93   <permission>View</permission>
94  </action>
95  <action title="Directories" action_id="directories" category="global"
96     condition_expr="python:not portal.portal_membership.isAnonymousUser()"
[354]97     url_expr="string:${portal_url}/cpsdirectory_view" visible="False">
98   <permission>Modify portal content</permission>
[293]99  </action>
[621]100  <action title="Portal Members" action_id="members" category="global"
101     condition_expr="member"
102     url_expr="string:${portal_url}/cpsdirectory_entry_search_form?dirname=members"
103     visible="True">
104   <permission>Modify portal content</permission>
[624]105  </action>
[341]106  <action title="Home" action_id="home" category="navigation"
[508]107     condition_expr="member" url_expr="string:${portal_url}" visible="True">
[338]108   <permission>View</permission>
109  </action>
[293]110  <action title="Academics" action_id="view_academics" category="navigation"
[508]111     condition_expr="member" url_expr="string:${portal_url}/campus/academics"
[293]112     visible="True">
113   <permission>View</permission>
114  </action>
[818]115  <action title="Hostels" action_id="view_accommodation" category="navigation"
116     condition_expr="member"
[624]117     url_expr="string:${portal_url}/campus/accommodation" visible="True">
[293]118   <permission>View</permission>
119  </action>
[300]120  <action title="Students" action_id="view_students" category="navigation"
[874]121     condition_expr="here/isStaff" url_expr="string:${portal_url}/campus/students"
[503]122     visible="True">
[874]123   <permission>View</permission>
[300]124  </action>
[543]125  <action title="PINs" action_id="view_pins" category="navigation"
126     condition_expr="member" url_expr="string:${portal_url}/campus/pins"
127     visible="True">
128   <permission>Modify portal content</permission>
[560]129  </action>
[820]130  <action title="Contact" action_id="contact" category="navigation"
131     condition_expr="member" url_expr="string:${portal_url}/contact" visible="True">
132   <permission>View</permission>
[824]133  </action>
[831]134  <action title="Support" action_id="contact_student" category="student_navigation"
[824]135     condition_expr="member" url_expr="string:${portal_url}/contact_student" visible="True">
136   <permission>View</permission>
[831]137  </action>
[501]138  <action title="Unchecked Items" action_id="unchecked" category="object"
[656]139     condition_expr="python:member and 'academics' in object_url"
[640]140     url_expr="string:./unchecked" visible="True">
[321]141   <permission>Modify portal content</permission>
142  </action>
[503]143  <action title="  " action_id="dummy" category="student_object"
144     condition_expr="" url_expr="" visible="True"/>
145  <action title="  " action_id="dummy2" category="object" condition_expr=""
146     url_expr="" visible="True"/>
[781]147  <action title="Apply for PUME" action_id="apply_admission"
[508]148     category="student" condition_expr="not:member"
[818]149     url_expr="string:${portal_url}/apply_admission" visible="False">
[781]150   <permission>View</permission>
151  </action>
152  <action title="View PUME Results" action_id="display_pume_result"
153     category="student" condition_expr="not:member"
[818]154     url_expr="string:${portal_url}/display_pume_result" visible="True">
[508]155   <permission>View</permission>
156  </action>
[785]157  <action title="Check Admission" action_id="check_admission"
[766]158     category="student" condition_expr="not:member"
[818]159     url_expr="string:${portal_url}/check_admission" visible="True">
[785]160   <permission>View</permission>
[766]161  </action>
[820]162
[849]163  <action title="My Accommodation" action_id="reserve_accommodation"
164     category="student_navigation" condition_expr="member"
[818]165     url_expr="string:${portal_url}/reserve_accommodation" visible="True"/>
[816]166   <permission>View</permission>
[820]167
[759]168  <action title="Register Courses" action_id="register_courses"
169     category="student" condition_expr="member"
[818]170     url_expr="string:${portal_url}/register_courses" visible="False"/>
[816]171   <permission>View</permission>
[820]172
[542]173  <action title="Home" action_id="students_home" category="student_navigation"
[544]174     condition_expr="member" url_expr="string:${portal_url}" visible="True">
[508]175   <permission>View</permission>
176  </action>
177  <action title="Prospectus" action_id="prospectus"
178     category="student_navigation" condition_expr="member"
179     url_expr="string:${portal_url}/campus/academics" visible="True">
180   <permission>View</permission>
181  </action>
[656]182  <action title="My Study" action_id="registration"
[508]183     category="student_navigation" condition_expr="member"
184     url_expr="string:${portal_url}/campus/students" visible="True">
185   <permission>View</permission>
186  </action>
[293]187 </action-provider>
188 <action-provider name="portal_registration">
189  <action title="Join" action_id="join" category="user"
190     condition_expr="python:portal.portal_registration.enable_portal_joining and not member"
191     url_expr="string:${portal_url}/join_form" visible="True">
192   <permission>Add portal member</permission>
193  </action>
194 </action-provider>
195 <action-provider name="portal_themes">
196  <action title="_action_themes_reconfig_" action_id="configThemes"
197     category="global"
198     condition_expr="python: member and portal.portal_membership.checkPermission('Manage Themes', portal.portal_themes)"
199     url_expr="string:${portal_url}/cpsskins_themes_reconfig_form"
200     visible="True">
201   <permission>View</permission>
202  </action>
203 </action-provider>
204 <action-provider name="portal_types"/>
205 <action-provider name="portal_syndication"/>
206 <action-provider name="portal_workflow"/>
207 <action-provider name="portal_properties">
208  <action title="Reconfigure Portal" action_id="configPortal"
209     category="global" condition_expr=""
210     url_expr="string:${portal_url}/config_form" visible="True">
211   <permission>Manage portal</permission>
212  </action>
213 </action-provider>
[874]214</object>
Note: See TracBrowser for help on using the repository browser.