Log message for revision 78467:
- back to getToolByName
Changed:
U CMF/branches/2.1/CMFDefault/Favorite.py
-=-
Modified: CMF/branches/2.1/CMFDefault/Favorite.py
===================================================================
--- CMF/branches/2.1/CMFDefault/Favorite.py 2007-07-29 16:44:23 UTC (rev
78466)
+++ CMF/branches/2.1/CMFDefault/Favorite.py 2007-07-29 16:44:46 UTC (rev
78467)
@@ -140,7 +140,9 @@
if remote_obj is not None:
return remote_obj
- return getUtility(ISiteRoot).restrictedTraverse(self.remote_url)
+ # XXX: can't use ISiteRoot because absolute_url() depends on REQUEST
+ portal_url = getToolByName(self, 'portal_url')
+ return portal_url.getPortalObject().restrictedTraverse(self.remote_url)
security.declarePrivate('_edit')
def _edit( self, remote_url ):
_______________________________________________
CMF-checkins mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/cmf-checkins