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

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

permission for members action changed

File size: 6.4 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="python:&quot;%s/login_form?%s&quot; % (portal_url, modules[&quot;urllib&quot;].urlencode({&quot;came_from&quot;: request.URL}))"
7     visible="True">
8   <permission>View</permission>
9  </action>
10  <action title="Log out" action_id="logout" category="user"
11     condition_expr="member" url_expr="string:${portal_url}/logout"
12     visible="True">
13   <permission>View</permission>
14  </action>
15  <action title="My stuff" action_id="mystuff" category="user"
16     condition_expr="python: member and portal.portal_membership.getHomeFolder()"
17     url_expr="string:${portal/portal_membership/getHomeUrl}/folder_contents"
18     visible="True">
19   <permission>View</permission>
20  </action>
21  <action title="action_my_preferences" action_id="preferences"
22     category="user"
23     condition_expr="python:member and member.has_role(&quot;Member&quot;)"
24     url_expr="string:${portal_url}/cpsdirectory_entry_view?dirname=members&amp;id=${member}"
25     visible="True">
26   <permission>View</permission>
27  </action>
28  <action title="Search Members" action_id="member_view" category="user"
29     condition_expr="member"
30     url_expr="string:${portal_url}/cpsdirectory_entry_search_form?dirname=members"
31     visible="False">
32   <permission>View</permission>
33  </action>
34 </action-provider>
35 <action-provider name="portal_actions">
36  <action title="action_portlets" action_id="portlets" category="folder"
37     condition_expr="member"
38     url_expr="string:${folder_url}/portlet_manage_form" visible="True">
39   <permission>Manage Portlets</permission>
40  </action>
41  <action title="action_accessibility" action_id="accessibility"
42     category="global_header" condition_expr=""
43     url_expr="string:${portal_url}/accessibility" visible="False">
44   <permission>View</permission>
45  </action>
46  <action title="action_print" action_id="print" category="global_header"
47     condition_expr=""
48     url_expr="string:javascript:if%20(window.print)%20window.print();"
49     visible="False">
50   <permission>View</permission>
51  </action>
52  <action title="action_advanced_search" action_id="advanced_search"
53     category="global_header" condition_expr=""
54     url_expr="string:./advanced_search_form" visible="True">
55   <permission>View</permission>
56  </action>
57  <action title="action_contact" action_id="contact" category="global_header"
58     condition_expr=""
59     url_expr="string:mailto:${portal/portal_properties/email_from_address}?subject=Info"
60     visible="False">
61   <permission>View</permission>
62  </action>
63  <action title="action_manage_vocabularies" action_id="manage_vocabularies"
64     category="global" condition_expr=""
65     url_expr="string:${portal_url}/vocabularies_manage_form" visible="False">
66   <permission>Modify portal content</permission>
67  </action>
68  <action title="action_add_favorites" action_id="add_favorites"
69     category="user"
70     condition_expr="python: member and portal.portal_membership.getHomeFolder()"
71     url_expr="string:${object/absolute_url}/addtoFavorites" visible="False">
72   <permission>View</permission>
73  </action>
74  <action title="action_view_favorites" action_id="view_favorites"
75     category="user"
76     condition_expr="python: hasattr(portal.portal_membership.getHomeFolder(),&quot;Favorites&quot;)"
77     url_expr="string:${portal/portal_membership/getHomeUrl}/Favorites"
78     visible="False">
79   <permission>View</permission>
80  </action>
81  <action title="Directories" action_id="directories" category="global"
82     condition_expr="python:not portal.portal_membership.isAnonymousUser()"
83     url_expr="string:${portal_url}/cpsdirectory_view" visible="False">
84   <permission>Modify portal content</permission>
85  </action>
86  <action title="Home" action_id="home" category="navigation"
87     condition_expr="" url_expr="string:${portal_url}"
88     visible="True">
89   <permission>View</permission>
90  </action>
91  <action title="Academics" action_id="view_academics" category="navigation"
92     condition_expr="" url_expr="string:${portal_url}/campus/academics"
93     visible="True">
94   <permission>View</permission>
95  </action>
96  <action title="Accommodation" action_id="view_accommodation"
97     category="navigation" condition_expr=""
98     url_expr="string:${portal_url}/campus/accommodation" visible="False">
99   <permission>View</permission>
100  </action>
101  <action title="Members" action_id="view_members" category="navigation"
102     condition_expr=""
103     url_expr="string:${portal_url}/cpsdirectory_entry_search_form?dirname=members"
104     visible="True">
105   <permission>Modify portal content</permission>
106  </action>
107  <action title="Students" action_id="view_students" category="navigation"
108     condition_expr="" url_expr="string:${portal_url}/campus/students"
109     visible="False">
110   <permission>Modify portal content</permission>
111  </action>
112  <action title="Unchecked Items" action_id="unchecked"
113     category="object"
114     condition_expr=""
115     url_expr="string:./unchecked"
116     visible="True">
117   <permission>Modify portal content</permission>
118  </action>
119 </action-provider>
120 <action-provider name="portal_registration">
121  <action title="Join" action_id="join" category="user"
122     condition_expr="python:portal.portal_registration.enable_portal_joining and not member"
123     url_expr="string:${portal_url}/join_form" visible="True">
124   <permission>Add portal member</permission>
125  </action>
126 </action-provider>
127 <action-provider name="portal_themes">
128  <action title="_action_themes_reconfig_" action_id="configThemes"
129     category="global"
130     condition_expr="python: member and portal.portal_membership.checkPermission('Manage Themes', portal.portal_themes)"
131     url_expr="string:${portal_url}/cpsskins_themes_reconfig_form"
132     visible="True">
133   <permission>View</permission>
134  </action>
135 </action-provider>
136 <action-provider name="portal_types"/>
137 <action-provider name="portal_syndication"/>
138 <action-provider name="portal_workflow"/>
139 <action-provider name="portal_properties">
140  <action title="Reconfigure Portal" action_id="configPortal"
141     category="global" condition_expr=""
142     url_expr="string:${portal_url}/config_form" visible="True">
143   <permission>Manage portal</permission>
144  </action>
145 </action-provider>
146</object>
Note: See TracBrowser for help on using the repository browser.