[CMF-checkins] CVS: Products/CMFCore - ActionsTool.py:1.13

Jens Vagelpohl jens@zope.com
Wed, 26 Sep 2001 13:25:31 -0400


Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv12946/CMFCore

Modified Files:
	ActionsTool.py 
Log Message:
Moved generation of the "Add to Favorites" and "My Favorites" links 
from the CMFCore/ActionsTool into the CMFDefault/MembershipTool, which
is a more logical location for it because it relies on information 
from the membership tool.




=== Products/CMFCore/ActionsTool.py 1.12 => 1.13 ===
                     'category': 'folder',
                     })
-            pm = getToolByName(self, 'portal_membership')
-            home_folder = pm.getHomeFolder()
-            if content_url is not None and home_folder is not None:
-                home_url = pm.getHomeUrl()
-                actions.append({
-                    'name': 'Add to Favorites',
-                    'url': ( content_url + '/addtoFavorites' ),
-                    'permissions' : [],
-                    'category': 'user',
-                    })
-                if hasattr(home_folder, 'Favorites'):
-                    actions.append({
-                        'name': 'My Favorites',
-                        'url' : home_url + '/Favorites/folder_contents',
-                        'permissions': [],
-                        'category': 'user',
-                        })
+
         return actions