Hi everyone, Simple newbie question... :) I've made a directory called News into which I will put files named newsXXX. X being a number from 999 to 001. What I want to do is to tell zope to put each file into a document. Now, here is what I figured out. <dtml-with News> <dtml-in ???> <--- that's where I'm stuck. I don't know how to iterate through a directory ... I want ALL the newsXXX displayed. </dtml-in> </dtml-with> How do I do that? TIA Dany ---.oo0O--------------O0oo.-------- Dany Rioux UnderSoft Inc. Business www.dating-reviews.com rdany@dating-reviews.com Personal www.drioux.com rdany@drioux.com -------.o00O-------O00o.-----------
<dtml-in "objectValues()"> -- Andy McKay, Developer. ActiveState. ----- Original Message ----- From: "Dany Rioux" <rdany@drioux.com> To: "Zope Mailing List" <zope@zope.org> Sent: Thursday, November 23, 2000 2:20 PM Subject: [Zope] Newbie Question
Hi everyone,
Simple newbie question... :)
I've made a directory called News into which I will put files named newsXXX. X being a number from 999 to 001.
What I want to do is to tell zope to put each file into a document. Now, here is what I figured out.
<dtml-with News> <dtml-in ???> <--- that's where I'm stuck. I don't know how to iterate through a directory ... I want ALL the newsXXX displayed. </dtml-in> </dtml-with>
How do I do that?
TIA
Dany
---.oo0O--------------O0oo.--------
Dany Rioux UnderSoft Inc. Business www.dating-reviews.com rdany@dating-reviews.com
Personal www.drioux.com rdany@drioux.com
-------.o00O-------O00o.-----------
Or even: <dtml-in objectValues> ;-) Chris Andy McKay wrote:
<dtml-in "objectValues()">
-- Andy McKay, Developer. ActiveState. ----- Original Message ----- From: "Dany Rioux" <rdany@drioux.com> To: "Zope Mailing List" <zope@zope.org> Sent: Thursday, November 23, 2000 2:20 PM Subject: [Zope] Newbie Question
Hi everyone,
Simple newbie question... :)
I've made a directory called News into which I will put files named newsXXX. X being a number from 999 to 001.
What I want to do is to tell zope to put each file into a document. Now, here is what I figured out.
<dtml-with News> <dtml-in ???> <--- that's where I'm stuck. I don't know how to iterate through a directory ... I want ALL the newsXXX displayed. </dtml-in> </dtml-with>
How do I do that?
TIA
Dany
---.oo0O--------------O0oo.--------
Dany Rioux UnderSoft Inc. Business www.dating-reviews.com rdany@dating-reviews.com
Personal www.drioux.com rdany@drioux.com
-------.o00O-------O00o.-----------
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Or even: <dtml-in "objectValues(['File'])"> if this news thing is a file.... ;-P -- Andy McKay, Developer. ActiveState. ----- Original Message ----- From: "Chris Withers" <chrisw@nipltd.com> To: "Andy McKay" <andym@activestate.com> Cc: "Dany Rioux" <rdany@drioux.com>; "Zope Mailing List" <zope@zope.org> Sent: Thursday, November 23, 2000 2:47 PM Subject: Re: [Zope] Newbie Question
Or even:
<dtml-in objectValues>
;-)
Chris
Andy McKay wrote:
<dtml-in "objectValues()">
-- Andy McKay, Developer. ActiveState. ----- Original Message ----- From: "Dany Rioux" <rdany@drioux.com> To: "Zope Mailing List" <zope@zope.org> Sent: Thursday, November 23, 2000 2:20 PM Subject: [Zope] Newbie Question
Hi everyone,
Simple newbie question... :)
I've made a directory called News into which I will put files named newsXXX. X being a number from 999 to 001.
What I want to do is to tell zope to put each file into a document. Now, here is what I figured out.
<dtml-with News> <dtml-in ???> <--- that's where I'm stuck. I don't know how to iterate through a directory ... I want ALL the newsXXX displayed. </dtml-in> </dtml-with>
How do I do that?
TIA
Dany
---.oo0O--------------O0oo.--------
Dany Rioux UnderSoft Inc. Business www.dating-reviews.com rdany@dating-reviews.com
Personal www.drioux.com rdany@drioux.com
-------.o00O-------O00o.-----------
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
I'm probably just being dumb... :) --------<PASTE>---------- <dtml-var standard_html_header> <p> <dtml-with News> <dtml-in objectValues> </dtml-in> </dtml-with> </p> <dtml-var standard_html_footer> --------</PASTE>---------- This doesn't work. Nothing gets printed. In the News folder is a DTML method called news999. Should it be a DTML document instead for this to work? I tried the three methods you gave me. objectValues, "objectValues()" and "objectValues('[File]')" and even "objectValues('[news999]')" but empty everytime. TIA Dany
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Andy McKay Sent: Thursday, November 23, 2000 7:00 PM To: Chris Withers Cc: Dany Rioux; Zope Mailing List Subject: Re: [Zope] Newbie Question
Or even: <dtml-in "objectValues(['File'])"> if this news thing is a file.... ;-P
Or even:
<dtml-in objectValues>
;-)
Chris
Andy McKay wrote:
<dtml-in "objectValues()">
-- From: "Dany Rioux" <rdany@drioux.com>
Hi everyone,
Simple newbie question... :)
I've made a directory called News into which I will
put files named
newsXXX. X being a number from 999 to 001.
What I want to do is to tell zope to put each file into a document. Now, here is what I figured out.
<dtml-with News> <dtml-in ???> <--- that's where I'm stuck. I don't know how to iterate through a directory ... I want ALL the newsXXX displayed. </dtml-in> </dtml-with>
How do I do that?
TIA
Dany
Dany: These should work: <dtml-in objectIds> <dtml-var "_['sequence-item']"> </dtml-in> -or- <dtml-in objectValues> <dtml-var sequence-item> </dtml-in> -or- <dtml-in objectValues> <dtml-var some_attribute_of_the_sequence-item> </dtml-in> --Jim Washington Dany Rioux wrote:
I'm probably just being dumb... :)
--------<PASTE>---------- <dtml-var standard_html_header>
<p> <dtml-with News> <dtml-in objectValues> </dtml-in> </dtml-with> </p>
<dtml-var standard_html_footer> --------</PASTE>----------
This doesn't work. Nothing gets printed.
In the News folder is a DTML method called news999. Should it be a DTML document instead for this to work?
I tried the three methods you gave me. objectValues, "objectValues()" and "objectValues('[File]')" and even "objectValues('[news999]')" but empty everytime.
<dtml-with myFolder> <dtml-in "objectValues(['DTML Document',])"> <dtml-var "_['sequence-item']"> </dtml-in> </dtml-with> Dany Rioux wrote:
I'm probably just being dumb... :)
--------<PASTE>---------- <dtml-var standard_html_header>
<p> <dtml-with News> <dtml-in objectValues> </dtml-in> </dtml-with> </p>
<dtml-var standard_html_footer> --------</PASTE>----------
This doesn't work. Nothing gets printed.
In the News folder is a DTML method called news999. Should it be a DTML document instead for this to work?
I tried the three methods you gave me. objectValues, "objectValues()" and "objectValues('[File]')" and even "objectValues('[news999]')" but empty everytime.
TIA
Dany
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Andy McKay Sent: Thursday, November 23, 2000 7:00 PM To: Chris Withers Cc: Dany Rioux; Zope Mailing List Subject: Re: [Zope] Newbie Question
Or even: <dtml-in "objectValues(['File'])"> if this news thing is a file.... ;-P
Or even:
<dtml-in objectValues>
;-)
Chris
Andy McKay wrote:
<dtml-in "objectValues()">
-- From: "Dany Rioux" <rdany@drioux.com>
Hi everyone,
Simple newbie question... :)
I've made a directory called News into which I will
put files named
newsXXX. X being a number from 999 to 001.
What I want to do is to tell zope to put each file into a document. Now, here is what I figured out.
<dtml-with News> <dtml-in ???> <--- that's where I'm stuck. I don't know how to iterate through a directory ... I want ALL the newsXXX displayed. </dtml-in> </dtml-with>
How do I do that?
TIA
Dany
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
I'm probably just being dumb... :)
--------<PASTE>---------- <dtml-var standard_html_header>
<p> <dtml-with News> <dtml-in objectValues>
<dtml-var "_['sequence-item']">
</dtml-in> </dtml-with> </p>
<dtml-var standard_html_footer>
this should work out for you. cu Philipp
Thanks Philipp and Jim, It worked! But... (there's always a but! :) I thought I was clever when I thought about naming my news files news999, news998 etc, thinking it would parse the directory and print the news sorted by their names. So news998 would be printed before news999 etc. It doesn't. <deleted questions because it's fixed> :) </deleted> Now this too is fixed. I just discovered the "sort=" thingie. One thing would sure be helpful, a Guide explaining all the subtags in a tag. Like what can be used in a <dtml-var> or <dtml-in> and params for each subtag. Because as someone mentioned, searching on zope is a real hassle. It takes a long time, and the search is ORed. So lots of unrelated docs are counted as a hit. Thanks a lot to all the helpers. Dany
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Philipp Dunkel Sent: Friday, November 24, 2000 5:00 PM To: Zope Mailing List Subject: Re: [Zope] Newbie Question
I'm probably just being dumb... :)
--------<PASTE>---------- <dtml-var standard_html_header>
<p> <dtml-with News> <dtml-in objectValues>
<dtml-var "_['sequence-item']">
</dtml-in> </dtml-with> </p>
<dtml-var standard_html_footer>
this should work out for you.
cu
Philipp
Dany Rioux wrote:
Thanks Philipp and Jim,
It worked! But... (there's always a but! :) I thought I was clever when I thought about naming my news files news999, news998 etc, thinking it would parse the directory and print the news sorted by their names. So news998 would be printed before news999 etc. It doesn't.
<deleted questions because it's fixed> :) </deleted>
Now this too is fixed. I just discovered the "sort=" thingie.
One thing would sure be helpful, a Guide explaining all the subtags in a tag. Like what can be used in a <dtml-var> or <dtml-in> and params for each subtag.
http://www.zope.org/Members/michel/ZB/AppendixA.html This DTML reference is also included in the Online Help System with Zope 2.4b1 and beyond. -Michel
Thanks! That's exactly what I was looking for. I know that the DTML reference is there on Zope.org but it's a hassle and well, I'll keep my other opinions for myself. Anyway. Here's an idea. Shouldn't there be a list FAQ? If there is one it should be sent when subscribing. Or it could be requested. I'm pretty sure most of the questions I sent have already been sent & answered more than once already and I know some that most other FAQs use one. So, why not zope general list? It *is* possible, though unlikely, that there is a list FAQ mentionned in the "Welcome to Zope mailing list" email but if there is, my apologies. Thanks. Dany
-----Original Message----- From: michel@localhost.localdomain [mailto:michel@localhost.localdomain]On Behalf Of Michel Pelletier Sent: Friday, November 24, 2000 12:17 PM To: Dany Rioux Cc: Zope Mailing List Subject: Re: [Zope] Newbie Question Fixed but continuing.
Dany Rioux wrote:
Thanks Philipp and Jim,
It worked! But... (there's always a but! :) I thought I was clever when I thought about naming my news files news999, news998 etc, thinking it would parse the directory and print the news sorted by their names. So news998 would be printed before news999 etc. It doesn't.
<deleted questions because it's fixed> :) </deleted>
Now this too is fixed. I just discovered the "sort=" thingie.
One thing would sure be helpful, a Guide explaining all
the subtags in
a tag. Like what can be used in a <dtml-var> or <dtml-in> and params for each subtag.
http://www.zope.org/Members/michel/ZB/AppendixA.html
This DTML reference is also included in the Online Help System with Zope 2.4b1 and beyond.
participants (7)
-
Andy McKay -
Chalu Kim -
Chris Withers -
Dany Rioux -
Jim Washington -
Michel Pelletier -
Philipp Dunkel