[Zope] how do you iterate over tiny tables?

Graham Chiu anon_emouse@hotmail.com
Tue, 23 May 2000 01:30:44 +1300


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In article <961647830084.20000522125928@funcom.com>, Geir BXkholt
<geirh@funcom.com> writes
>on Monday, May 22, 2000 Graham Chiu wrote :
>[snip]
>GC> I have a folder full of Tiny Tables.  I would like to go over each
>GC> table, and iterate thru their contents.
>
>GC> <dtml-in "objectValues(['TinyTable'])">
>GC>   <dtml-in sequence-item>
>GC>      <dtml-var value><br>
>GC>   </dtml-in>
>GC> </dtml-in>
>
>GC> doesn't do anything.  Clues?
>[snip]
>
>perhaps (untested) <dtml-in "_['sequence-item']"> would work
>??
>

Nope, but this does for some reason

<dtml-in "thisdirectory.objectValues(['TinyTable'])">
   <dtml-in sequence-item>
    <dtml-var value><br>
  </dtml-in>
</dtml-in>


I would like to print out the title attribute of the tiny table now, but

  <dtml-var "_.getattr(_['sequence-item'],'title')">

chokes on title with an attribute error.


- -- 
Regards,  Graham Chiu
gchiu<at>compkarori.co.nz
http://www.compkarori.co.nz/index.php
Powered by Interbase and Zope

-----BEGIN PGP SIGNATURE-----
Version: PGPsdk version 1.7.1

iQA/AwUBOSiNxbTRdIWzaLpMEQKTHwCdFRttEtEvI1ygh4edW2w5uv4gfeYAnRdx
NrC161zJKnJBLSrWZQWAEe7w
=DuhO
-----END PGP SIGNATURE-----