problem with REQUEST.set
hey everyone, i am having BIG problems using REQUEST.set within Zope. I am trying to dynamically build a URL to redirect the browser to using the following code: <!--#call "REQUEST.set('jumpToBase', '../foodirectory/index.html?member Num=' + userID)"--> <!--#call "RESPONSE.redirect('jumpToBase')"--> but this is throwing back an error on the REQUEST.set part, the error looks as follows: Object: REQUEST.set('jumpToBase', '../foodirectory/index.html?memberNum =' + userDetails)) File <string>, line 0, in ? TypeError: (see above) The userDetails variable is a INT value pulled from a database and i cannot understand why it is falling over on this!! Does anyone have any thoughts? Cheers, Wom..
On Thu, 5 Aug 1999 wombat_harness@hotmail.com wrote:
Object: REQUEST.set('jumpToBase', '../foodirectory/index.html?memberNum =' + userDetails)) File <string>, line 0, in ? TypeError: (see above)
The userDetails variable is a INT value pulled from a database and i cannot understand why it is falling over on this!!
Does anyone have any thoughts?
It is python, not perl. You cannot just add INT to STRING. Convert INT to STRING: <UNTESTED> REQUEST.set('jumpToBase', '../foodirectory/index.html?memberNum=' + str(userDetails))) </UNTESTED>
Cheers,
Wom..
Oleg. ---- Oleg Broytmann Netskate/Inter.Net.Ru phd@emerald.netskate.ru Programmers don't die, they just GOSUB without RETURN.
participants (2)
-
Oleg Broytmann -
wombat_harness@hotmail.com