class InputGetter(object):
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 |