I have this code segment in a dtml method: <dtml-call "RESPONSE.redirect(URL1+'/MathodName?var1='+var1val+'&var2='+var2val+'&var3= '+var3val)"> It seems as if I am doing something wrong. I get the the following error message : Zope has encountered an error while publishing this resource. Error Type: TypeError Error Value: illegal argument type for built-in operation I have tried the above code before many times and it worked. If I remove var3 from the redirect string everything goes fine. Is there a limit to the number of variables you can pass in the query string section of the URL? Thanks in advance Karl
karl, the error happens because your "var3val" is not always a string. you might have to force it to be a string by saying _.str(var3val) or you might want to investigate if errors or unexpected conditions cause something wrong to appear as the value of var3val. jens on 4/7/01 14:52, Karl Munroe at komunroe@uwimona.edu.jm wrote:
I have this code segment in a dtml method:
<dtml-call "RESPONSE.redirect(URL1+'/MathodName?var1='+var1val+'&var2='+var2val+'&var3= '+var3val)">
It seems as if I am doing something wrong. I get the the following error message :
Zope has encountered an error while publishing this resource.
Error Type: TypeError Error Value: illegal argument type for built-in operation
I have tried the above code before many times and it worked. If I remove var3 from the redirect string everything goes fine. Is there a limit to the number of variables you can pass in the query string section of the URL?
Thanks in advance Karl
Hi Karl, you are probably trying to add a number to a string or something like that. To make sure, all of the values are strings before concenating them, souround them either by _.str() or use: '%s/MethodName?var1=%s&var2=%s&var3=%s' % (URL1,var1val,var2val,var2val) (try to get a little bit familar with python itself. This helps understanding why and when zope is doing something) Regards Tino --On Samstag, 7. April 2001 10:52 -0800 Karl Munroe <komunroe@uwimona.edu.jm> wrote:
I have this code segment in a dtml method:
<dtml-call "RESPONSE.redirect(URL1+'/MathodName?var1='+var1val+'&var2='+var2val+'&va r3= '+var3val)">
It seems as if I am doing something wrong. I get the the following error message :
Zope has encountered an error while publishing this resource.
Error Type: TypeError Error Value: illegal argument type for built-in operation
I have tried the above code before many times and it worked. If I remove var3 from the redirect string everything goes fine. Is there a limit to the number of variables you can pass in the query string section of the URL?
Thanks in advance Karl
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Jens Vagelpohl -
Karl Munroe -
Tino Wildenhain