Home | Trees | Index | Help |
|
---|
Package lxml :: Package html :: Class FormElement |
|
object
--+ |_Element
--+ |ElementBase
--+ |object
--+ | | |HtmlMixin
--+ |HtmlElement
--+ | FormElement
Method Summary | |
---|---|
_name(self)
| |
action__del(self)
| |
Get/set the form's ``action`` attribute. | |
action__set(self,
value)
| |
Dictionary-like object that represents all the fields in this form. | |
fields__set(self,
value)
| |
Return a list of tuples of the field values for the form. | |
Get/set the form's method. | |
method__set(self,
value)
| |
Inherited from ElementBase | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
Inherited from _Element | |
x.__contains__(y) <==> y in x | |
| |
| |
x.__delitem__(y) <==> del x[y] | |
Use of negative indices is not supported. | |
x.__getitem__(y) <==> x[y] | |
Use of negative indices is not supported. | |
x.__iter__() <==> iter(x) | |
x.__len__() <==> len(x) | |
x.__nonzero__() <==> x != 0 | |
x.__repr__() <==> repr(x) | |
| |
x.__setitem__(i, y) <==> x[i]=y | |
Use of negative indices is not supported. | |
Called after object initialisation. | |
Adds the element as a following sibling directly after this element. | |
Adds the element as a preceding sibling directly before this element. | |
Adds a subelement to the end of this element. | |
Resets an element. | |
Extends the current children by the elements in the iterable. | |
Finds the first matching subelement, by tag name or path. | |
Finds all matching subelements, by tag name or path. | |
Finds text for the first matching subelement, by tag name or path. | |
Gets an element attribute. | |
Returns all subelements. | |
Iterate over all elements in the subtree in document order (depth first pre-order), starting with this element. | |
Returns the following sibling of this element or None. | |
Returns the parent of this element or None for the root element. | |
Returns the preceding sibling of this element or None. | |
Return an ElementTree for the root node of the document that contains this element. | |
Find the position of the child within the parent. | |
Inserts a subelement at the given position in this element | |
Gets element attributes, as a sequence. | |
Iterate over all elements in the subtree in document order (depth first pre-order), starting with this element. | |
Iterate over the ancestors of this element (from parent to parent). | |
Iterate over the children of this element. | |
Iterate over the descendants of this element in document order. | |
Iterate over the following or preceding siblings of this element. | |
Gets a list of attribute names. | |
Creates a new element associated with the same document. | |
Removes a matching subelement. | |
Replaces a subelement with the element passed as second argument. | |
Sets an element attribute. | |
Gets element attribute values as a sequence of strings. | |
Evaluate an xpath expression using the element as context node. | |
Inherited from HtmlMixin | |
Run the CSS expression on this element and its children, returning a list of the results. | |
Remove the tag, but not its children or text. | |
Removes this element from the tree, including its children and text. | |
Find any elements with the given class name. | |
Find any links like ``<a rel="{rel}">...</a>``; returns a list of elements. | |
Get the first element in a document with the given id. | |
Yield (element, attribute, link, pos), where attribute may be None (indicating the link is in the text). | |
| |
Get or set any <label> element associated with this element. | |
| |
Make all links in the document absolute, given the ``base_url`` for the document (the full URL where the document came from), or if no ``base_url`` is given, then the ``.base_url`` of the document. | |
Find any ``<base href>`` tag in the document, and apply its values to all links found in the document. | |
Rewrite all the links in the document. | |
Return the text content of the tag (and the text in any children). | |
Inherited from object | |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Property Summary | |
---|---|
action : Get/set the form's ``action`` attribute. | |
fields : Dictionary-like object that represents all the fields in this
form. | |
inputs : Returns an accessor for all the input elements in the form. | |
method : Get/set the form's method. | |
Inherited from HtmlMixin | |
base_url : Returns the base URL, given when the page was parsed. | |
body : Return the <body> element. | |
forms : Return a list of all the forms | |
head : Returns the <head> element. | |
label : Get or set any <label> element associated with this element. |
Class Variable Summary | |
---|---|
Inherited from _Element | |
getset_descriptor |
attrib = <attribute 'attrib' of 'lxml.etree._Element' ob...
|
getset_descriptor |
nsmap = <attribute 'nsmap' of 'lxml.etree._Element' obje...
|
getset_descriptor |
prefix = <attribute 'prefix' of 'lxml.etree._Element' ob...
|
getset_descriptor |
sourceline = <attribute 'sourceline' of 'lxml.etree._Ele...
|
getset_descriptor |
tag = <attribute 'tag' of 'lxml.etree._Element' objects>
|
getset_descriptor |
tail = <attribute 'tail' of 'lxml.etree._Element' object...
|
getset_descriptor |
text = <attribute 'text' of 'lxml.etree._Element' object...
|
Method Details |
---|
action__get(self)Get/set the form's ``action`` attribute. |
fields__get(self)Dictionary-like object that represents all the fields in this form. You can set values in this dictionary to effect the form. |
form_values(self)Return a list of tuples of the field values for the form. This is suitable to be passed to ``urllib.urlencode()``. |
method__get(self)Get/set the form's method. Always returns a capitalized string, and defaults to ``'GET'`` |
Property Details |
---|
actionGet/set the form's ``action`` attribute.
|
fieldsDictionary-like object that represents all the fields in this form. You can set values in this dictionary to effect the form.
|
inputsReturns an accessor for all the input elements in the form. See `InputGetter` for more information about the object.
|
methodGet/set the form's method. Always returns a capitalized string, and defaults to ``'GET'``
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Aug 18 12:44:27 2007 | http://epydoc.sf.net |