Module cgi :: Class SvFormContentDict
[hide private]
[frames] | no frames]

_ClassType SvFormContentDict

UserDict.UserDict --+    
                    |    
      FormContentDict --+
                        |
                       SvFormContentDict
Known Subclasses:

Form content as dictionary expecting a single value per field.

If you only expect a single value for each field, then form[key] will return that single value. It will raise an IndexError if that expectation is not true. If you expect a field to have possible multiple values, than you can use form.getlist(key) to get all of the values. values() and items() are a compromise: they return single strings where there is a single value, and lists of strings otherwise.

Instance Methods [hide private]
 
__getitem__(self, key)
 
getlist(self, key)
 
values(self)
 
items(self)

Inherited from FormContentDict: __init__

Inherited from UserDict.UserDict: __cmp__, __contains__, __delitem__, __len__, __repr__, __setitem__, clear, copy, get, has_key, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update

Class Methods [hide private]

Inherited from UserDict.UserDict: fromkeys

Method Details [hide private]

__getitem__(self, key)
(Indexing operator)

 
Overrides: UserDict.UserDict.__getitem__

values(self)

 
Overrides: UserDict.UserDict.values

items(self)

 
Overrides: UserDict.UserDict.items