[Zope] request object not including querystring args

Justin Robertson nostrebornitsuj at hotmail.com
Mon Jan 26 09:05:41 EST 2004


Can anyone tell me why the first script is returning None for 
request.get('argClsRecId')?

Script:
request = container.REQUEST
response =  request.RESPONSE
print request.QUERY_STRING
print request.get('argClsRecId')
return printed

Request URL:
http://localhost:8080/scripts/actAddSubjectReport?argClsRecId=159&argStuRecId=2288

Output:
argClsRecId=159&argStuRecId=2288
None

But if you try this script:

request = container.REQUEST
response =  request.RESPONSE
for x in request.items():
    print x[0], x[1]
return printed

argClsRecId and argStuRecId are there (along with all the other things).

Thanks,

J

_________________________________________________________________
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger




More information about the Zope mailing list