[Zope] Pointers in zope ??? object1 --> object2 ==> "REQU EST.resolve_url('my_url')"

NABETH Thierry Thierry.NABETH@insead.fr
Wed, 21 Jun 2000 12:38:36 +0200


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BFDB6C.9586BED0
Content-Type: text/plain;
	charset="iso-8859-1"

Thank you David,

I really would have had difficulties finding it myself.


<dtml-try>
<dtml-with "REQUEST.resolve_url('http://zope-server/path to the object')">
  <dtml-var method_to_call>
</dtml-with>
<dtml-except>
  Error in resolve_url: unable to get the object from the url.
  <br>does the url matches the REQUEST.script: <dtml-var "REQUEST.script"> ?
</dtml-try>




Note:
In the resolve url, you have to be carefull that
zope-server is exactly the same as the machine name.
More specifically zope-server has to be the same as REQUEST.script
or it will generate an error.


Thierry Nabeth
Research Fellow
INSEAD CALT (the Centre for Advanced Learning Technologies)
http://www.insead.fr/CALT/


-----Original Message-----
From: R. David Murray [mailto:bitz@bitdance.com]
Sent: Tuesday, June 20, 2000 9:22 PM
To: NABETH Thierry
Subject: RE: [Zope] Pointers in zope ??? object1 --> object2


On Tue, 20 Jun 2000, NABETH Thierry wrote:
> Please, let me know if you remember of anything that could help me
> to identify the way to get the object from an url.

Looks like it's 'REQUEST.resolve_url(<path>)'.

--RDM

------_=_NextPart_001_01BFDB6C.9586BED0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: [Zope] Pointers in zope ???  object1 --&gt; object2   =
=3D=3D&gt;  &quot;REQUEST.resolve_url('my_url')&quot;</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Thank you David,</FONT>
</P>

<P><FONT SIZE=3D2>I really would have had difficulties finding it =
myself.</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>&lt;dtml-try&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;dtml-with &quot;REQUEST.resolve_url('<A =
HREF=3D"http://zope-server/path" =
TARGET=3D"_blank">http://zope-server/path</A> to the =
object')&quot;&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp; &lt;dtml-var method_to_call&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;/dtml-with&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;dtml-except&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp; Error in resolve_url: unable to get the =
object from the url.</FONT>
<BR><FONT SIZE=3D2>&nbsp; &lt;br&gt;does the url matches the =
REQUEST.script: &lt;dtml-var &quot;REQUEST.script&quot;&gt; ?</FONT>
<BR><FONT SIZE=3D2>&lt;/dtml-try&gt;</FONT>
</P>
<BR>
<BR>
<BR>

<P><FONT SIZE=3D2>Note:</FONT>
<BR><FONT SIZE=3D2>In the resolve url, you have to be carefull =
that</FONT>
<BR><FONT SIZE=3D2>zope-server is exactly the same as the machine =
name.</FONT>
<BR><FONT SIZE=3D2>More specifically zope-server has to be the same as =
REQUEST.script</FONT>
<BR><FONT SIZE=3D2>or it will generate an error.</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Thierry Nabeth</FONT>
<BR><FONT SIZE=3D2>Research Fellow</FONT>
<BR><FONT SIZE=3D2>INSEAD CALT (the Centre for Advanced Learning =
Technologies)</FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://www.insead.fr/CALT/" =
TARGET=3D"_blank">http://www.insead.fr/CALT/</A></FONT>
</P>
<BR>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: R. David Murray [<A =
HREF=3D"mailto:bitz@bitdance.com">mailto:bitz@bitdance.com</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, June 20, 2000 9:22 PM</FONT>
<BR><FONT SIZE=3D2>To: NABETH Thierry</FONT>
<BR><FONT SIZE=3D2>Subject: RE: [Zope] Pointers in zope ??? object1 =
--&gt; object2</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>On Tue, 20 Jun 2000, NABETH Thierry wrote:</FONT>
<BR><FONT SIZE=3D2>&gt; Please, let me know if you remember of anything =
that could help me</FONT>
<BR><FONT SIZE=3D2>&gt; to identify the way to get the object from an =
url.</FONT>
</P>

<P><FONT SIZE=3D2>Looks like it's =
'REQUEST.resolve_url(&lt;path&gt;)'.</FONT>
</P>

<P><FONT SIZE=3D2>--RDM</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01BFDB6C.9586BED0--