From: alan r. <ru...@pr...> - 2004-01-26 18:30:26
|
Update of /cvsroot/plone/CMFPlone/migrations/v2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14674/migrations/v2 Modified Files: Tag: Plone-2_0-branch release_candidates.py Log Message: fix the sharing debacle Index: release_candidates.py =================================================================== RCS file: /cvsroot/plone/CMFPlone/migrations/v2/release_candidates.py,v retrieving revision 1.1.2.7 retrieving revision 1.1.2.8 diff -u -d -r1.1.2.7 -r1.1.2.8 --- release_candidates.py 26 Jan 2004 16:46:13 -0000 1.1.2.7 +++ release_candidates.py 26 Jan 2004 18:29:31 -0000 1.1.2.8 @@ -50,6 +50,18 @@ ai.addActionIcon('plone', 'addtofavorites', 'site_icon.gif', 'AddToFavorites') except KeyError: pass #Duplicate definition! + + tt=getToolByName(portal, 'portal_types') + for ptype in tt.objectValues(): + if ptype.getId() not in ('Folder', 'Plone Site', 'Large Plone Folder') and \ + 'local_roles' not in [ai.getId() for ai in ptype.listActions()]: + ptype.addAction('local_roles', + name='Sharing', + action="string:${object_url}/folder_localrole_form", + condition='', + permission='Manage properties', + category='object') + at.addAction('addtofavorites', 'Add to Favorites', 'string:${request/URL1}/addtoFavorites', |