[Zope] problem with REQUEST.set

Oleg Broytmann phd@emerald.netskate.ru
Thu, 5 Aug 1999 19:37:13 +0400 (MSD)


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.