Package wtf :: Package app :: Module request :: Class ParameterWrapper
[hide private]
[frames] | no frames]

Class ParameterWrapper

source code

object --+
         |
        ParameterWrapper

Wrapper around cgi.FieldStorage

This wrapper provides a better interface and unicode awareness

Instance Methods [hide private]
 
__init__(self, request)
Initialization
source code
 
__setitem__(self, name, value)
Set a single item value
source code
 
__getitem__(self, name)
Return a single value for that name
source code
 
__iter__(self)
Return an iterator over the regular keys
source code
bool
__contains__(self, name)
Determines whether a certain key exists
source code
bool
has_key(self, name)
Determines whether a certain key exists
source code
list
keys(self)
Determine the list of available keys
source code
 
multi(self, name)
Return a list of all values under that name
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
_determine_encoding(store)
Guess encoding of the request parameters
source code
Properties [hide private]
str encoding
Assumed encoding of the request
Uploads uploads
Upload container

Inherited from object: __class__

Method Details [hide private]

__init__(self, request)
(Constructor)

source code 
Initialization
Parameters:
  • request (Request) - request object
Overrides: object.__init__

__setitem__(self, name, value)
(Index assignment operator)

source code 
Set a single item value
Parameters:
  • name (str) - The name to set
  • value (unicode) - The value to assign

__contains__(self, name)
(In operator)

source code 
Determines whether a certain key exists
Parameters:
  • name (str) - The key to check
Returns: bool
Does the key exist?

has_key(self, name)

source code 
Determines whether a certain key exists
Parameters:
  • name (str) - The key to check
Returns: bool
Does the key exist?

keys(self)

source code 
Determine the list of available keys
Returns: list
The key list

Property Details [hide private]

encoding

Assumed encoding of the request
Get Method:
unreachable.fget(self)
Type:
str

uploads

Upload container
Get Method:
unreachable.fget(self)
Type:
Uploads