Code

Ticket #567: has_key_request.patch

File has_key_request.patch, 438 bytes (added by wojtek3@…, 9 years ago)

Patch for requestwrappers to add has_key to request

  • httpwrappers.py

     
    2020                return d[key] 
    2121        raise KeyError, "%s not found in either POST or GET" % key 
    2222 
     23    def has_key(self, key): 
     24        return self.GET.has_key(key) or self.POST.has_key(key) 
     25         
    2326    def get_full_path(self): 
    2427        return '' 
    2528