[Zope] Keys in Request
    Dieter Maurer 
    dieter at handshake.de
       
    Wed Mar  3 15:18:36 EST 2004
    
    
  
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
    
    
More information about the Zope
mailing list