Re: [Zope] newbie dtml-in question objectValues

2006-01-11 Thread Alric Aneron
thats exactly what I need, thank you!David H <[EMAIL PROTECTED]> wrote:Alric Aneron wrote: Hello, I am trying to find how to get the relative path of an object.  If i do:      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.___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] newbie dtml-in question objectValues

2006-01-11 Thread J Cameron Cooper

Alric Aneron wrote:

 Hello,
I am trying to find how to get the relative path of an object.  If i do:

   


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.


Ask yourself: where does URLPATH0 come from?

When you know that, you will answer your own question.

--jcc
--
"Building Websites with Plone"
http://plonebook.packtpub.com/

Enfold Systems, LLC
http://www.enfoldsystems.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] newbie dtml-in question objectValues

2006-01-10 Thread David H




Alric Aneron wrote:

   Hello,
I am trying to find how to get the relative path of an object.  If i do:

   

  
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



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] newbie dtml-in question objectValues

2006-01-10 Thread Alric Aneron
 Hello, I am trying to find how to get the relative path of an object.  If i do:    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 
		Yahoo! Photos – Showcase holiday pictures in hardcover 
Photo Books. You design it and we’ll bind it!___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )