[Zope] Keys in Request

Philip Kilner phil at xfr.co.uk
Wed Mar 3 03:43:29 EST 2004


Hi List,

Can't figure this out - need help!

In a Script (Python), I'm testing for the presence (or more precisely 
the absence) of a key in the request, like so: -

request=context.REQUEST

if not request.has_key('the_key'):

The problem is that the test always fails (e.g. it acts as though the 
key is absent, even when it is not). If I modify the test to check for a 
form filed, it works fine.

What am I doing wrong?

-- 

Regards,

PhilK

Email: phil at xfr.co.uk / Voicemail & Facsimile: 07092 070518

"The lyf so short, the craft so long to learne" - Chaucer





More information about the Zope mailing list