[CMF-checkins] CVS: CMF/CMFDefault - Favorite.py:1.13.16.1
Tres Seaver
tseaver@zope.com
Fri, 4 Jan 2002 20:59:59 -0500
Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv32006
Modified Files:
Tag: tseaver-tracker_419-branch
Favorite.py
Log Message:
- Ensure that Favorites display the correct, absolute URL to their
target, without needing to have <base> tag set (Tracker #419).
=== CMF/CMFDefault/Favorite.py 1.13 => 1.13.16.1 ===
portal_url = getToolByName(self, 'portal_url')
if self.remote_url:
- return portal_url.getPortalPath() + '/' + self.remote_url
+ return portal_url() + '/' + self.remote_url
else:
- return portal_url.getPortalPath()
+ return portal_url()
def getIcon(self, relative_to_portal=0):
"""