[CMF-checkins] SVN: CMF/trunk/CMFDefault/Favorite.py - back to
getToolByName
Yvo Schubbe
y.2007- at wcm-solutions.de
Sun Jul 29 12:44:23 EDT 2007
Log message for revision 78466:
- back to getToolByName
Changed:
U CMF/trunk/CMFDefault/Favorite.py
-=-
Modified: CMF/trunk/CMFDefault/Favorite.py
===================================================================
--- CMF/trunk/CMFDefault/Favorite.py 2007-07-29 15:36:05 UTC (rev 78465)
+++ CMF/trunk/CMFDefault/Favorite.py 2007-07-29 16:44:23 UTC (rev 78466)
@@ -139,7 +139,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