Package tdi :: Package tools :: Package htmlform :: Module _adapters :: Class ListDictParameterAdapter
[frames] | no frames]

Class ListDictParameterAdapter

source code

object --+
         |
        ListDictParameterAdapter

HTMLForm parameter adapter from a dict of sequences
Instance Methods
 
__init__(self, param)
Initialization
source code
 
getfirst(self, name, default=None) source code
 
getlist(self, name) source code

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

Class Variables
  __implements__ = [<class 'tdi.tools.htmlform._interfaces.Param...
Instance Variables
dict of sequences param
Parameters
Properties

Inherited from object: __class__

Method Details

__init__(self, param)
(Constructor)

source code 
Initialization
Parameters:
  • param (dict of sequences) - Parameters. Empty sequences act as if the key was not present. Otherwise getfirst will return the first element and getlist will return a shallow copy of the sequence as a list.
Overrides: object.__init__

getfirst(self, name, default=None)

source code 

See Also: tdi.tools.htmlform.ParameterAdapterInterface

getlist(self, name)

source code 

See Also: tdi.tools.htmlform.ParameterAdapterInterface


Class Variable Details

__implements__

Value:
[<class 'tdi.tools.htmlform._interfaces.ParameterAdapterInterface'>]

Instance Variable Details

param

Parameters
Type:
dict of sequences