3 Mar
2004
3 Mar
'04
8:18 p.m.
Philip Kilner wrote at 2004-3-3 08:43 +0000:
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'):
This looks good. "request.has_key('the_key')" will return True when "request" has key "'the_key'" (the literal string 'the_key') -- Dieter