[Zope] Putting a variable in a redirect call
Yvonne Totty
ytotty@atinucleus.com
Wed, 17 Jan 2001 17:11:46 -0600
This is a multi-part message in MIME format.
------=_NextPart_000_002F_01C080A8.9295B640
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
All,
I need to replace the URL below to a partial <dtml-var> and and an address, like so:
<dtml-call
"RESPONSE.redirect('https://www.mysite.com/scripts/zope.pcgi/Anywhere/COMTemp/'+LUserOut+'
.doc')">
to:
<dtml-call "RESPONSE.redirect('<dtml-var baserefW>/COMTemp...blah, blah)">
where baserefW contains the information replaced in the second sentence to make the
address
easily changeable site-wide.
How can I acheive this?
TIA,
-y
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Yvonne Totty
Database Engineer, x2198
-------------------------
Maximus: What we do in life, echoes in eternity.
-- Gladiator
------=_NextPart_000_002F_01C080A8.9295B640
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 content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT color=3D#000080 face=3D"Comic Sans MS"><SPAN=20
class=3D573480623-17012001>All,</SPAN></FONT></DIV>
<DIV><FONT color=3D#000080 face=3D"Comic Sans MS"><SPAN=20
class=3D573480623-17012001></SPAN></FONT> </DIV>
<DIV><FONT color=3D#000080 face=3D"Comic Sans MS"><SPAN =
class=3D573480623-17012001>I=20
need to replace the URL below to a partial <dtml-var> and and an =
address,=20
like so:</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=3D#000080 face=3D"Comic Sans MS"><dtml-call=20
"RESPONSE.redirect('https://<SPAN=20
class=3D573480623-17012001>www.mysite.com</SPAN>/scripts/zope.pcgi/Anywhe=
re/COMTemp/'+LUserOut+'.doc')"></FONT></DIV>
<DIV><FONT color=3D#000080 face=3D"Comic Sans MS"><SPAN=20
class=3D573480623-17012001>to:</SPAN></FONT></DIV>
<DIV><SPAN class=3D573480623-17012001><FONT color=3D#000080=20
face=3D"Comic Sans MS"><dtml-call "RESPONSE.redirect('<dtml-var=20
baserefW>/COMTemp...blah, blah</FONT><FONT color=3D#000080=20
face=3D"Comic Sans MS">)<SPAN class=3D573480623-17012001>"</SPAN><SPAN=20
class=3D573480623-17012001>></SPAN> </FONT></SPAN></DIV>
<DIV><SPAN class=3D573480623-17012001></SPAN> </DIV>
<DIV><SPAN class=3D573480623-17012001><FONT color=3D#000080=20
face=3D"Comic Sans MS">where baserefW contains the information replaced =
in the=20
second sentence to make the address</FONT></SPAN></DIV>
<DIV><SPAN class=3D573480623-17012001><FONT color=3D#000080=20
face=3D"Comic Sans MS">easily changeable site-wide.</FONT></SPAN></DIV>
<DIV><SPAN class=3D573480623-17012001> </DIV>
<DIV><FONT color=3D#000080 face=3D"Comic Sans MS"><SPAN =
class=3D573480623-17012001>How=20
can I acheive this?</SPAN></FONT></DIV>
<DIV><SPAN class=3D573480623-17012001></SPAN></SPAN><FONT =
color=3D#000080=20
face=3D"Comic Sans MS"><SPAN =
class=3D573480623-17012001>TIA,</SPAN></FONT></DIV>
<DIV><FONT color=3D#000080 face=3D"Comic Sans MS"><SPAN=20
class=3D573480623-17012001></SPAN></FONT> </DIV>
<DIV><FONT color=3D#000080 face=3D"Comic Sans MS"><SPAN=20
class=3D573480623-17012001>-y</SPAN></FONT></DIV>
<P align=3Dleft><FONT color=3D#000080=20
face=3D"Comic Sans =
MS">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR></FONT><FONT=20
color=3D#000080 face=3D"Comic Sans MS">Yvonne Totty<BR></FONT><FONT =
color=3D#000080=20
face=3D"Comic Sans MS">Database Engineer, x2198</FONT><FONT =
color=3D#000080=20
face=3D"Comic Sans MS"><BR></FONT><FONT color=3D#000080=20
face=3D"Comic Sans MS">-------------------------<BR></FONT><FONT=20
color=3D#000080><FONT face=3D"Comic Sans MS">Maximus: What we do in =
life, echoes in=20
eternity.<BR> -- Gladiator<BR></P></FONT></FONT>
<DIV> </DIV></BODY></HTML>
------=_NextPart_000_002F_01C080A8.9295B640--