-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have a folder full of Tiny Tables. I would like to go over each table, and iterate thru their contents. <dtml-in "objectValues(['TinyTable'])"> <dtml-in sequence-item> <dtml-var value><br> </dtml-in> </dtml-in> doesn't do anything. Clues? - -- 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/AwUBOShmmLTRdIWzaLpMEQK1bgCfZzGV36/mDJUv0cMs+l0aLXIx2eMAoKwF fFOcpW6t4quJ2qisBnvYU/n4 =hdRX -----END PGP SIGNATURE-----
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 ?? -- Geir Bækholt web-developer/designer geirh@funcom.com http://www.funcom.com
-----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-----
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>? cheers, Chris
-----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-----
+----[ Graham Chiu ]--------------------------------------------- | | | I have a folder full of Tiny Tables. I would like to go over each | table, and iterate thru their contents. | | <dtml-in "objectValues(['TinyTable'])"> | <dtml-in sequence-item> | <dtml-var value><br> | </dtml-in> | </dtml-in> | | doesn't do anything. Clues? I don't think you need the []'s <dtml-in "objectValues('TinyTable')"> <dtml-var title><br> <dtml-in sequence-item> <dtml-var value><br> </dtml-in> </dtml-in> This works for me. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 In article <200005221401.AAA97128@mail.theinternet.com.au>, Andrew Kenneth Milton <akm@mail.theinternet.com.au> writes
<dtml-in "objectValues('TinyTable')"> <dtml-var title><br> <dtml-in sequence-item> <dtml-var value><br> </dtml-in> </dtml-in>
This works for me.
This code is in the index_html of the same folder containing the tinytables. It doesn't work for me unless I specify the folder as in thisfolder.objectValues() whereas all the examples I've seen don't need this. Using 2.1.4. - -- 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/AwUBOSjxF7TRdIWzaLpMEQIllQCeNBhRdPYs6+pO1uAX8Derq5mAzR4An0xQ C5V5fjETLwc/MNy4k6ijIfbC =xN4l -----END PGP SIGNATURE-----
+----[ Graham Chiu ]--------------------------------------------- | | ><dtml-in "objectValues('TinyTable')"> | > <dtml-var title><br> | > <dtml-in sequence-item> | > <dtml-var value><br> | > </dtml-in> | ></dtml-in> | > | >This works for me. | | This code is in the index_html of the same folder containing the | tinytables. It doesn't work for me unless I specify the folder as in | | thisfolder.objectValues() | | whereas all the examples I've seen don't need this. Using 2.1.4. My index_html is a dtml-method, not a dtml-document. Using 2.1.4. I find myself rarely using dtml-documents because they don't acquire like methods. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au|
participants (4)
-
Andrew Kenneth Milton -
Chris Withers -
Geir B�kholt -
Graham Chiu