[Zope] how do you iterate over tiny tables?

Graham Chiu anon_emouse@hotmail.com
Tue, 23 May 2000 08:27:51 +1300


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

In article <39293D21.C0A55148@nipltd.com>, Chris Withers
<chrisw@nipltd.com> writes
>Graham Chiu wrote:
>> <dtml-in "thisdirectory.objectValues(['TinyTable'])">
>>    <dtml-in sequence-item>
>>     <dtml-var value><br>
>>   </dtml-in>
>> </dtml-in>
>
>Is this code in a DTML document or method?
>
>> 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.
>
>What's wrong with just <dtml-var title>?
>

Nothing.  Just shows I shouldn't be doing this Zope at 1 am :-(

- -- 
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/AwUBOSjviLTRdIWzaLpMEQKiPwCghmIzqzzHDE0PefkxLvXDBUN2CM4An1/b
C8sS3SChTJVPvtgHEd0gF4OL
=Ne8G
-----END PGP SIGNATURE-----