Title: RE: [Zope] Pointers in zope ??? object1 --> object2 ==> "REQUEST.resolve_url('my_url')"

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:[EMAIL PROTECTED]]
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

Reply via email to