[CMF-checkins] SVN: CMF/branches/2.1/CMFDefault/Favorite.py - back
to getToolByName
Yvo Schubbe
y.2007- at wcm-solutions.de
Sun Jul 29 12:44:47 EDT 2007
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 ):
More information about the CMF-checkins
mailing list