[Zope] Get absolute_url of object with id that contains a dot in
Script (Python)
Eric Walstad
eric@ericwalstad.com
Fri, 09 Aug 2002 11:05:26 -0700
Stefan,
Thanks for the reply. My question was a little oversimplified, I guess.
Here's some more detail.
I have:
folder.com (a folder)
index.html (a ZPT)
images (a folder)
picture.png (an Image)
util (a folder)
neat_script (a Script (Python))
from within "neat_script" I want to get the absolute_url of
folder.com/index.html
container.images['picture.png'].absolute_url()
works because of aquisition, I think.
container['folder.com'].['index.html'].absolute_url()
doesn't work, which is what I need.
Thanks for any help!
Eric.
Stefan H. Holek wrote:
> container['index.html'].absolute_url()
>
> --On Freitag, 09. August 2002 10:22 -0700 Eric Walstad
> <eric@walstads.net> wrote:
>
>> How can I reference an object whos id contains a dot.
>> I need to do this in a Python Script.
>>
>> e.g., in Script (Python):
>> url = container.index.html.absolute_url()
>> ---------------------^
>> That dot causes problems for me
>>
>> I didn't find the answer in the archives, so I'm asking here.
>
>
> --
> Those who write software only for pay should go hurt some other field.
> /Erik Naggum/
>
> _______________________________________________
> 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 )
>
--
_________________________
Eric Walstad
222 Winfield Street
San Francisco, CA 94110
415-643-0812 voice & fax
eric@ericwalstad.com
_________________________