[Zope] Re: How to convert string to object?
Josef Meile
josef.meile@imes.mavt.ethz.ch
Thu, 6 Mar 2003 20:03:07 +0100
--- In zope@yahoogroups.com, "Josef Meile" <josef.meile@i...> wrote:
> > I tried do following in index_html:
> >
> > <dtml-var obj>
> >
> > But this echoes only plain text ('path.to.object.file') and not the
> > object's content. I need to find some way how to convert this string to
> > object, so Zope (or Python) can understand it as an object and display
its
> > content. Is there some way?
> You could try:
>
> <dtml-var "REQUEST.resolve_url(obj)">
Opss, I saw your path is separated with dots '.', so I guess
you will have to convert them to slashes '/'. I think you will also
need to add 'http://www.mysite.com/' before your path