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

Last change on this file since 676 was 659, checked in by Henrik Bettermann, 18 years ago

some fixes and minor modifications for the launching of the accommodation module

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