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

Florian Lindner mailinglists at xgm.de
Tue Feb 22 11:16:21 EST 2005


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?

Or is this not the preferred way to go? Should the getShortDescription (which 
just truncates the string and add "...") better reside in the folder view 
class?

Thx,
Florian


More information about the Zope3-users mailing list