Hi. My name is Ruben and I'm new in this list of Zope. My first question is .. ¿How can I get a list of the files of a folder? I supose that it will we very easy for you. Thank you. Rubén
On Tue, 6 Feb 2001, Ruben Garrigues wrote:
My name is Ruben and I'm new in this list of Zope.
Welcome.
©How can I get a list of the files of a folder?
There are no "files" in Zope - these things are objects, instances of Python classes.
I supose that it will we very easy for you.
Very easy, indeed: objectIds(['DTML Document', 'DTML Method']), or objectValues(...). I recommend you to read documentation. Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Ruben, How about something like: <dtml-in "objectIds(['DTML Document'])"> <dtml-var id> </dtml-in> The DTML Document bit can be changed to be the meta-type of whatever it is your're looking for, e.g. Image File DTML Method Folder etc If you're interested in this I'd start by looking at the Zope Quick Reference (http://zdp.zope.org), and also the Zope Book (http://www.zope.org/Members/michel/ZB). hth Phil ----- Original Message ----- From: "Ruben Garrigues" <ruben@amutis.com> To: <zope@zope.org> Sent: Tuesday, February 06, 2001 10:51 AM Subject: [Zope] Folder
Hi.
My name is Ruben and I'm new in this list of Zope.
My first question is ..
¿How can I get a list of the files of a folder? I supose that it will we very easy for you.
Thank you.
Rubén
_______________________________________________ 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 )
participants (4)
-
Chris Withers -
Oleg Broytmann -
Phil Harris -
Ruben Garrigues