[Zope] verifying existence
Josef Meile
jmeile@hotmail.com
Sat, 5 Jan 2002 15:16:52 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_004F_01C195FC.013BFB90
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
You can try this:
<dtml-try>
<dtml-call "REQUEST.resolve_url(myUrl)">
Object was found. Do something here
<dtml-except>
The Object wasn't found. Put your error message here.
</dtml-try>
Regards,
Josef.
------=_NextPart_000_004F_01C195FC.013BFB90
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2712.300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>You can try this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><dtml-try><BR> =
<dtml-call=20
"REQUEST.resolve_url(myUrl)"><BR></FONT><FONT face=3DArial =
size=3D2> Object=20
was found. Do something here</DIV></FONT><FONT face=3DArial size=3D2>
<DIV><dtml-except></DIV>
<DIV> The Object wasn't found. Put your error message=20
here.</DIV>
<DIV></dtml-try></DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Josef.</FONT></DIV></BODY></HTML>
------=_NextPart_000_004F_01C195FC.013BFB90--