Re: [Zope] <dtml-var expr="RESPONSE.redirect Question
Grate Thanks It is working now !!!!
From: Dylan Reinhardt <zope@dylanreinhardt.com> Reply-To: zope@dylanreinhardt.com To: Alexander Alvarado <funalito@hotmail.com> CC: pw_lists@slinkp.com, Zope Users <zope@zope.org> Subject: Re: [Zope] <dtml-var expr="RESPONSE.redirect Question Date: 11 Sep 2003 13:07:28 -0700
On Thu, 2003-09-11 at 12:43, Alexander Alvarado wrote:
Yes, that is what I want!!
So I used the Python expresion:
<dtml-var expr="RESPONSE.redirect('Disponibilidad?Arrival=%s&Departure=%s' % (REQUEST['dcArrival'], REQUEST['dcDeparture']))">
But it sends mi to the Zope Quick Start page, What am i doing wrong now??
Good question is Disponibilidad maybe the name of a folder that doesn't have an index_html method?
For best results, you should use a *absolute* URL in redirect(), not a *relative* URL such as you are currently using. See if that doesn't clear things up.
Also, it's not strictly necessary to say REQUEST['dcArrival'] unless you're passing in the name of the variable at runtime. Just typing dcArrival should produce the same results.
HTH,
Dylan
_________________________________________________________________ Charla con tus amigos en lĂnea mediante MSN Messenger: http://messenger.yupimsn.com/
Subject line is always the hardest... MySQL table with one field set as a unique indexed field. The value of this field is used as input to a a ZSQL method to display data on a DTML page within a dtml-in. If I test the ZSQL method with the string value it works fine. If I hard code the string value on in the dtml-in it works fine. BUT...If I use a python script to generate that string value it does not work. However...If I leave the dtml page alone and remove the unique index from the data table, it works!! How can that be?? How can a unique index in a MySQL table have any affect in how a string value is handled in Zope? BTW, the value is like SP12345 or KG34321 so its not that it is an integer and I was assuming it a string...or something like that. I thought a string was a string was a string... Can someone enlighten me on this? Seems odd to me.. Thanks Allen
Allen wrote:
BTW, the value is like SP12345 or KG34321 so its not that it is an integer and I was assuming it a string...or something like that. I thought a string was a string was a string...
Can someone enlighten me on this? Seems odd to me..
Show us you code, and full errors (type, value, traceback) and we may be able to help... Chris
I solved it by removing the unique index from the field and then just creating a new field with the same value (obviously different column name) and making it unique so my REPLACE INTO will still do what I want. The code won't help and there were no errors. Just never fell into the dtmi-in. Removing the unique index and it all worked. Just seemed strange. Thanks for responding. Allen Chris Withers wrote:
Allen wrote:
BTW, the value is like SP12345 or KG34321 so its not that it is an integer and I was assuming it a string...or something like that. I thought a string was a string was a string...
Can someone enlighten me on this? Seems odd to me..
Show us you code, and full errors (type, value, traceback) and we may be able to help...
Chris
participants (3)
-
Alexander Alvarado -
Allen -
Chris Withers