[Zope3-Users] Acess view class method of foreign object

Dominik Huber dominik.huber at projekt01.ch
Tue Feb 22 11:28:28 EST 2005


Florian Lindner wrote:

>Hello,
>I iterate though all items of a folderish object in its view:
>
><div tal:repeat="item context/values">
> Desc: <span tal:replace="item/view/getShortDescription">Desc</span><br />
></div>
>
>The above sippet does not work.
>
>getShortDescription is a object of the view class of the contained object 
>type. In views of this object it would be accessed with 
>view/getShortDescription. How can I access it from another view?
>
>  
>
 item/@@subview/getShortDescription

where subview ist the name registered within ZCML.

for example:
item/@@absolute_url/breadcrumbs

regards,
Dominik Huber



More information about the Zope3-users mailing list