[Zope] newbie dtml-in question objectValues

Alric Aneron aluminum3458 at yahoo.com
Wed Jan 11 19:34:09 EST 2006


thats exactly what I need, thank you!

David H <bluepaul at earthlink.net> wrote:        Alric Aneron wrote:     Hello,
 I am trying to find how to get the relative path of an object.  If i do:
 <dtml-in "objectValues('DTML Document')">
    <dtml-var URLPATH0>
 </dtml-in>
   
 URLPATH0 does not give me the relative path of the objects interated, but rather the path of the object doing the iterating (my method). I want the path of every DTML Document the loop encounters.  absolute_url works, but it puts in the undesired filename and "http://...." in front etc. 
   
 Thanks in advance!
 Al
   
    
   
---------------------------------
 Alric,
 
 This is a python example.  I dont want to convert to dtml but maybe you do.
 
 for o in container.objectValues('DTML Method'):
    print o.virtual_url_path()
 
 return printed
 
 


		
---------------------------------
Yahoo! Photos
 Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20060111/91f90f68/attachment.htm


More information about the Zope mailing list