Re: [Zope] dtml-tree advice, please

2000-10-10 Thread Dieter Maurer
Brian Withun writes: I have two ZClasses. One ("Album") is folderish, and serves as a photo album. The other ("Photo") isn't and serves as a photo in an Album. Albums can contain only Albums and Photos. I would like to have a dtml-tree represent this hierarchy of Albums and

[Zope] dtml-tree advice, please

2000-10-09 Thread Brian Withun
Consider the following situation: - I have two ZClasses. One ("Album") is folderish, and serves as a photo album. The other ("Photo") isn't and serves as a photo in an Album. Albums can contain only Albums and Photos. I would like to have a dtml-tree

Re: [Zope] dtml-tree advice, please

2000-10-09 Thread Tim Cook
Brian Withun wrote: I need the branches to represent two different meta types, Album and Photo. If I use branches_expr="objectValues('Album') I'll see the tree rendered with only Albums, and no Photos shown. Not sure of the consequences in the tree tag. But objectValues() accepts multiple

RE: [Zope] dtml-tree advice, please

2000-10-09 Thread Seb Bacon
branches_expr="objectValues('Album' 'Photo') I think you mean branches_expr="objectValues(['Album','Photo']) seb ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! **

Re: [Zope] dtml-tree advice, please

2000-10-09 Thread Tim Cook
Seb Bacon wrote: branches_expr="objectValues('Album' 'Photo') I think you mean branches_expr="objectValues(['Album','Photo']) Ah, what's a bracket here or there? g It may be more correct? But dtml-in "objectValues('DTML Method' 'Folder')" will render as expected. Go figure! --