[CMF-checkins] CVS: CMF/CMFDefault/skins/control - addtoFavorites.py:1.3
Andrew Sawyers
andrew@zope.com
Mon, 7 Jan 2002 13:56:27 -0500
Update of /cvs-repository/CMF/CMFDefault/skins/control
In directory cvs.zope.org:/tmp/cvs-serv13894/CMFDefault/skins/control
Modified Files:
addtoFavorites.py
Log Message:
*merge to head change for tracker #440.
=== CMF/CMFDefault/skins/control/addtoFavorites.py 1.2 => 1.3 ===
new_id='fav_' + str(int( context.ZopeTime()))
myPath=context.portal_url.getRelativeUrl(context)
-targetFolder.invokeFactory( 'Favorite', id=new_id, title=context.Title(), remote_url=myPath)
+targetFolder.invokeFactory( 'Favorite', id=new_id, title=context.TitleOrId(), remote_url=myPath)
url = '%s/%s' % (context.absolute_url(), context.getTypeInfo().getActionById('view',''))
return context.REQUEST.RESPONSE.redirect(url)