Putting a variable in a redirect call
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
Exactly as per your first example: <dtml-call "RESPONSE.redirect(baserefW + '/COMTemp')"> -- Andy McKay. ----- Original Message ----- From: "Yvonne Totty" <ytotty@atinucleus.com> To: <zope@zope.org> Sent: Wednesday, January 17, 2001 3:11 PM Subject: [Zope] Putting a variable in a redirect call
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/COMTem p/'+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
Gosh darn it, it didn't work 8( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Yvonne Totty Database Engineer, x2198 ------------------------- Maximus: What we do in life, echoes in eternity. -- Gladiator
Exactly as per your first example:
<dtml-call "RESPONSE.redirect(baserefW + '/COMTemp')"> -- Andy McKay.
----- Original Message ----- From: "Yvonne Totty" <ytotty@atinucleus.com> To: <zope@zope.org> Sent: Wednesday, January 17, 2001 3:11 PM Subject: [Zope] Putting a variable in a redirect call
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/Anywh ere/COMTem p/'+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
Whats the error? -- Andy McKay. ----- Original Message ----- From: "Yvonne Totty" <ytotty@atinucleus.com> To: "Andy McKay" <andym@ActiveState.com> Cc: <zope@zope.org> Sent: Wednesday, January 17, 2001 3:57 PM Subject: RE: [Zope] Putting a variable in a redirect call
Gosh darn it, it didn't work 8(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Yvonne Totty Database Engineer, x2198 ------------------------- Maximus: What we do in life, echoes in eternity. -- Gladiator
Exactly as per your first example:
<dtml-call "RESPONSE.redirect(baserefW + '/COMTemp')"> -- Andy McKay.
----- Original Message ----- From: "Yvonne Totty" <ytotty@atinucleus.com> To: <zope@zope.org> Sent: Wednesday, January 17, 2001 3:11 PM Subject: [Zope] Putting a variable in a redirect call
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/Anywh ere/COMTem p/'+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
Please dont post in html BTW. -- Andy McKay. ----- Original Message ----- From: "Yvonne Totty" <ytotty@atinucleus.com> To: <zope@zope.org> Sent: Wednesday, January 17, 2001 3:11 PM Subject: [Zope] Putting a variable in a redirect call
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/COMTem p/'+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
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Yvonne Totty
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+'.do c')"> to: <dtml-call "RESPONSE.redirect('<dtml-var baserefW>/COMTemp...blah, blah)">
Actually you are allmost doing it right yourself: <dtml-call "RESPONSE.redirect(baserefW + '/COMTemp' + LUserOut + '.doc')"> Regards MaxM
participants (3)
-
Andy McKay -
Max M -
Yvonne Totty