[CMF-checkins] CVS: CMF/CMFDefault/skins/control - addtoFavorites.py:1.5
Florent Guillaume
fg@nuxeo.com
Fri, 28 Jun 2002 21:25:55 -0400
Update of /cvs-repository/CMF/CMFDefault/skins/control
In directory cvs.zope.org:/tmp/cvs-serv23973/CMFDefault/skins/control
Modified Files:
addtoFavorites.py
Log Message:
Fixed addtoFavorites to correctly add a favorite of someone else's
document (Tracker #501).
=== CMF/CMFDefault/skins/control/addtoFavorites.py 1.4 => 1.5 ===
##title=Add item to favourites
##parameters=
-homeFolder=context.portal_membership.getHomeFolder()
+portal = context.portal_url.getPortalObject()
+homeFolder = portal.portal_membership.getHomeFolder()
if not hasattr(homeFolder, 'Favorites'):
homeFolder.manage_addPortalFolder(id='Favorites', title='Favorites')