form
– Form related elements¶
This XIST module contains convenience classes for form elements. These are
just abbreviations for the various <input type="...">
elements.
-
class
ll.xist.ns.form.
text
[source]¶ Bases:
ll.xist.ns.html.input
-
class
ll.xist.ns.form.
checkbox
[source]¶ Bases:
ll.xist.ns.html.input
-
class
ll.xist.ns.form.
radio
[source]¶ Bases:
ll.xist.ns.html.input
-
class
ll.xist.ns.form.
file
[source]¶ Bases:
ll.xist.ns.html.input
-
class
ll.xist.ns.form.
submit
[source]¶ Bases:
ll.xist.ns.html.input
Bases:
ll.xist.ns.html.input
Bases:
ll.xist.ns.html.Attrs
implementation of the conversion method. When you define your own element classes you have to overwrite this method and implement the desired conversion.
This method must return an instance of
Node
. It may not changeself
.
-
class
ll.xist.ns.form.
textarea
[source]¶ Bases:
ll.xist.ns.html.textarea
-
class
Attrs
[source]¶ Bases:
ll.xist.ns.html.Attrs
-
class
value
[source]¶ Bases:
ll.xist.xsc.TextAttr
-
class
-
class
Bases:
ll.xist.ns.html.input
Bases:
ll.xist.ns.html.Attrs
Return the character content of
self
as a string. This means that comments and processing instructions will be filtered out. For elements you’ll get the element content.__str__()
can be used everywhere where a plain string representation of the node is required.For example:
>>> from ll.xist.ns import html >>> e = html.html( ... html.head( ... html.title("The page") ... ), ... html.body( ... html.h1("The header"), ... html.p("The content", class_="content") ... ) ... ) >>> print(e) The pageThe headerThe content
implementation of the conversion method. When you define your own element classes you have to overwrite this method and implement the desired conversion.
This method must return an instance of
Node
. It may not changeself
.