class documentation

class InputGetter(object):

View In Hierarchy

An accessor that represents all the input fields in a form.

You can get fields by name from this, with form.inputs['field_name']. If there are a set of checkboxes with the same name, they are returned as a list (a CheckboxGroup which also allows value setting). Radio inputs are handled similarly. Use .keys() and .items() to process all fields in this way.

You can also iterate over this to get all input elements. This won't return the same thing as if you get all the names, as checkboxes and radio elements are returned individually.

Method __contains__ Undocumented
Method __getitem__ Undocumented
Method __init__ Undocumented
Method __iter__ Undocumented
Method __len__ Undocumented
Method __repr__ Undocumented
Method items Returns all fields with their names, similar to dict.items().
Method keys Returns all unique field names, in document order.
Instance Variable form Undocumented
def __contains__(self, name):

Undocumented

def __getitem__(self, name):

Undocumented

def __init__(self, form):

Undocumented

def __iter__(self):

Undocumented

def __len__(self):

Undocumented

def __repr__(self):

Undocumented

def items(self):
Returns all fields with their names, similar to dict.items().
Returns
A list of (name, field) tuples.
def keys(self):
Returns all unique field names, in document order.
Returns
A list of all unique field names.
form =

Undocumented