[Zope3-Users] Accessing sub objects view class?
Mats Nordgren
mats at ronin-group.org
Wed Mar 15 13:22:02 EST 2006
I'm trying to figure out how to access a sub objects view class.
1. <div metal:fill-slot="body">
2. <h4 tal:content="context/title">Title</h4>
3. <div tal:content="structure view/renderDescription">Description</div>
4. <div tal:define="sections view/getSections">
5. <div tal:repeat="item sections">
6. <div metal:use-macro="item/<at><at>view.html/sectionmacro">
7. <span metal:fill-slot="title"><span tal:content="item/title"
/></span>
8. <span metal:fill-slot="description"><span
tal:content="item/description" /></span>
9. </div>
10. </div>
11. </div>
12.</div>
I'm trying to format the description of subobject 'item' on line 8 with its
renderDescription function, just like parent object on line 3, but can't
seem to figure out how. Perhaps I'm going about it completely wrong. Any
help appreciated.
Mats
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20060315/c1e6f6a5/attachment.htm
More information about the Zope3-users
mailing list