Home | Trees | Index | Help |
|
---|
Package lxml :: Package html :: Class InputGetter |
|
object
--+
|
InputGetter
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.
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 Summary | |
---|---|
__init__(self,
form)
| |
__contains__(self,
name)
| |
__getitem__(self,
name)
| |
__iter__(self)
| |
__repr__(self)
| |
keys(self)
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
XPath |
_all_xpath = .//*[name() = 'select' or name() = 'input' ...
|
XPath |
_name_xpath = .//*[@name = $name and (name(.) = 'select'...
|
Class Variable Details |
---|
_all_xpath
|
_name_xpath
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Aug 18 12:44:28 2007 | http://epydoc.sf.net |