Hi I would like to list all objects in a folder. No problem there. However, I want to use the function/method universely so I need to pass the name of the target folder; as a string is the only way I can think of (formatted as a url). I tried several things in DTML and studies the DTML Ref, the mailinglist and the How-To's very hard but did not have the Enlightment yet :-( Is it possible ? Example: <dtml-in "PARENTS[0].objectValues()"> <dtml-var icon> <dtml-var id> <dtml-var title> <dtml-var meta_type> <dtml-var bobobase_modification_time fmt="%m/%d/%Y"> </dtml-in> But then instead of PARENTS[0] some parameter, for example: /method?folder=foo Gijs Reulen
Ok, I am very sorry to have cluthered this list. What can I say ? I am definitely not up to Zen yet, because I was thinking in a very old fashioned way :-( The question and the answer were the same message; the example Method I gave works perfectly when called for whatever object thanks to the wonderfull world of objects and aquisition :-) Good night Gijs Reulen
-----Oorspronkelijk bericht----- Van: Gijs Reulen [mailto:greulen@gilsing.nl] Verzonden: dinsdag 8 augustus 2000 0:54 Aan: Mailinglist Zope Onderwerp: string to objectname conversion ?
Hi
I would like to list all objects in a folder. No problem there. However, I want to use the function/method universely so I need to pass the name of the target folder; as a string is the only way I can think of (formatted as a url). I tried several things in DTML and studies the DTML Ref, the mailinglist and the How-To's very hard but did not have the Enlightment yet :-( Is it possible ?
Example: <dtml-in "PARENTS[0].objectValues()"> <dtml-var icon> <dtml-var id> <dtml-var title> <dtml-var meta_type> <dtml-var bobobase_modification_time fmt="%m/%d/%Y"> </dtml-in>
But then instead of PARENTS[0] some parameter, for example: /method?folder=foo
Gijs Reulen
On Tue, 08 Aug 2000, Gijs Reulen wrote:
Hi
I would like to list all objects in a folder. No problem there. However, I want to use the function/method universely so I need to pass the name of the target folder; as a string is the only way I can think of (formatted as a url). I tried several things in DTML and studies the DTML Ref, the mailinglist and the How-To's very hard but did not have the Enlightment yet :-( Is it possible ?
You looked in almost all the right references. (o8 The one more that you will find indispensible from now on is the Zope Quick Reference. Go now, read it, save it, love it. (o8
Example: <dtml-in "PARENTS[0].objectValues()"> <dtml-var icon> <dtml-var id> <dtml-var title> <dtml-var meta_type> <dtml-var bobobase_modification_time fmt="%m/%d/%Y"> </dtml-in>
But then instead of PARENTS[0] some parameter, for example: /method?folder=foo
You want the getitem method of _ <dtml-in "_.getitem(sObjectName).objectValues()"> ... </dtml-it>
Gijs Reulen
Have a better one, Curtis Maloney
participants (2)
-
Curtis Maloney -
Gijs Reulen