[CMF-checkins] CVS: CMF/CMFDefault - Favorite.py:1.13.2.2
Jens Vagelpohl
jens@zope.com
Tue, 8 Jan 2002 19:26:13 -0500
andrew, there is a typo in your fix... you should check the code before
you check it in...
+ return
portal_url.getPortalObject().retrictedTraverse(self.remote_url)
you typed "retrictedTraverse" instead of "restrictedTraverse"
jens
On Tuesday, January 8, 2002, at 05:05 , Andrew Sawyers wrote:
> 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 ):
> """
>
>
> _______________________________________________
> CMF-checkins mailing list
> CMF-checkins@python.org
> http://lists.zope.org/mailman/listinfo/cmf-checkins