<?xml version="1.0"?>
<actions-tool>
 <action-provider id="portal_membership">
  <action action_id="login" title="Login"
          condition_expr="not: member"
          url_expr="string:${portal_url}/login_form"
          category="user" visible="True">
   <permission>View</permission>
  </action>
  <action action_id="preferences" title="Preferences"
          condition_expr="member"
          url_expr="string:${portal_url}/personalize_form"
          category="user" visible="True">
   <permission>View</permission>
  </action>
  <action action_id="logout" title="Log out"
          condition_expr="member"
          url_expr="string:${portal_url}/logout"
          category="user" visible="True">
   <permission>View</permission>
  </action>
  <action action_id="addFavorite" title="Add to favorites"
          condition_expr="portal/portal_membership/getHomeFolder"
          url_expr="string:${object_url}/addtoFavorites"
          category="user" visible="True">
   <permission>View</permission>
  </action>
  <action action_id="mystuff" title="My stuff"
          condition_expr="python: member and portal.portal_membership.getHomeFolder()"
          url_expr="string:${portal/portal_membership/getHomeUrl}/folder_contents"
          category="user" visible="True">
   <permission>View</permission>
  </action>
  <action action_id="favorites" title="My favorites"
          condition_expr="python: member and hasattr(portal.portal_membership.getHomeFolder(), &quot;Favorites&quot;)"
          url_expr="string:${portal/portal_membership/getHomeUrl}/Favorites/folder_contents"
          category="user" visible="True">
   <permission>View</permission>
  </action>
  <action action_id="manage_members" title="Manage members"
          condition_expr=""
          url_expr="string:${portal_url}/members_manage_form"
          category="global" visible="True">
   <permission>Manage users</permission>
  </action>
  <action action_id="logged_in" title="Logged in"
          condition_expr=""
          url_expr="string:${portal_url}/logged_in"
          category="user" visible="False">
   <permission>View</permission>
  </action>
 </action-provider>
 <action-provider id="portal_actions">
  <action action_id="folderContents" title="Folder contents"
          condition_expr="python: folder is not object"
          url_expr="string:${folder_url}/folder_contents"
          category="folder" visible="True">
   <permission>List folder contents</permission>
  </action>
 </action-provider>
 <action-provider id="portal_registration">
  <action action_id="join" title="Join"
          condition_expr="not: member"
          url_expr="string:${portal_url}/join_form"
          category="user" visible="True">
   <permission>Add portal member</permission>
  </action>
 </action-provider>
 <action-provider id="portal_types">

 </action-provider>
 <action-provider id="portal_discussion">
  <action action_id="reply" title="Reply"
          condition_expr="python: object is not None and portal.portal_discussion.isDiscussionAllowedFor(object)"
          url_expr="string:${object_url}/discussion_reply_form"
          category="object" visible="True">
   <permission>Reply to item</permission>
  </action>
 </action-provider>
 <action-provider id="portal_undo">
  <action action_id="undo" title="Undo"
          condition_expr="member"
          url_expr="string:${portal_url}/undo_form"
          category="global" visible="True">
   <permission>List undoable changes</permission>
  </action>
 </action-provider>
 <action-provider id="portal_syndication">
  <action action_id="syndication" title="Syndication"
          condition_expr="python: folder is object"
          url_expr="string:${folder_url}/synPropertiesForm"
          category="object" visible="True">
   <permission>Manage properties</permission>
  </action>
 </action-provider>
 <action-provider id="portal_workflow">

 </action-provider>
 <action-provider id="portal_properties">
  <action action_id="configPortal"
          title="Reconfigure Portal" condition_expr=""
          url_expr="string:${portal_url}/reconfig_form"
          category="global" visible="True">
   <permission>Manage portal</permission>
  </action>
 </action-provider>
</actions-tool>
