[Zope-CMF] RE: Our CMF-CMS Demo - favorite_view problem

Dieter Maurer dieter@handshake.de
Thu, 28 Jun 2001 22:55:47 +0200 (CEST)

Jon Edwards writes:
 > If anyone has added a favorite in the demo, you may have noticed it can
 > cause an error when you view the Member's page!
 > The problem is caused by this line which I've added to the favorite_view and
 > favorite_list methods -
 > <dtml-var "_.getitem(remote_url).title">
 > The odd thing is it works if the item being linked to is in the root of the
 > portal, but fails if it is further down the folder hierarchy. Can anyone
 > point me in the right direction to fix this?

  For URL or path accessors you "restrictedTraverse" for
  resolution into an object.