<?xml version="1.0"?>
<object name="portal_actions" meta_type="Plone Actions Tool">

 <action-provider name="portal_membership">
  <action title="My Folder" action_id="mystuff" category="user"
     condition_expr="python:(member is not None) and (portal.portal_membership.getHomeFolder() is not None)"
     url_expr="string:${portal/portal_membership/getHomeUrl}" visible="True">
   <permission>View</permission>
  </action>
  <action title="Workspace" action_id="myworkspace" category="user"
     condition_expr="python:(member is not None) and (portal.portal_membership.getHomeFolder() is not None)"
     url_expr="string:${portal/portal_membership/getHomeUrl}/workspace"
     visible="False">
   <permission>View</permission>
  </action>
  <action title="My favorites" action_id="favorites" category="user"
     condition_expr="python:(member is not None) and hasattr(portal.portal_membership.getHomeFolder(), &quot;Favorites&quot;)"
     url_expr="string:${portal/portal_membership/getHomeUrl}/Favorites/folder_contents"
     visible="False">
   <permission>View</permission>
  </action>
  <action title="Preferences" action_id="preferences" category="user"
     condition_expr="python:member is not None"
     url_expr="string:${portal_url}/plone_memberprefs_panel" visible="True">
   <permission>View</permission>
  </action>
  <action title="Add to favorites" action_id="addFavorite" category="user"
     condition_expr="python: portal.portal_membership.getHomeFolder() is not None"
     url_expr="string:${object_url}/addtoFavorites" visible="False">
   <permission>View</permission>
  </action>
  <action title="Log in" action_id="login" category="user"
     condition_expr="python:member is None" url_expr="string:${portal_url}/login_form"
     visible="True">
   <permission>View</permission>
  </action>
  <action title="Manage members" action_id="manage_members" category="global"
     condition_expr="" url_expr="string:${portal_url}/members_manage_form"
     visible="True">
   <permission>Manage users</permission>
  </action>
  <action title="Logged in" action_id="logged_in" category="user"
     condition_expr="" url_expr="string:${portal_url}/logged_in"
     visible="False">
   <permission>View</permission>
  </action>
  <action title="Log out" action_id="logout" category="user"
     condition_expr="python:member is not None" url_expr="string:${portal_url}/logout"
     visible="True">
   <permission>View</permission>
  </action>
 </action-provider>
</object>
