[CMF-checkins] CVS: CMF/CMFDefault - Favorite.py:1.13.2.2

Andrew Sawyers andrew@zope.com
Tue, 8 Jan 2002 17:05:11 -0500


Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv6542/CMFDefault

Modified Files:
      Tag: CMF-1_2-branch
	Favorite.py 
Log Message:

*Fixed a bug in Favorite.getObject to use restrictedTraverse on
the portal object.


=== CMF/CMFDefault/Favorite.py 1.13.2.1 => 1.13.2.2 ===
         linking to
         """
-        return self.restrictedTraverse(self.getRemoteUrl())
+        portal_url = getToolByName(self, 'portal_url')
+        return portal_url.getPortalObject().retrictedTraverse(self.remote_url)
 
     def edit( self, remote_url ):
         """