Home | Trees | Indices | Help |
|
---|
|
object --+ | _Element --+ | ElementBase
ElementBase(*children, attrib=None, nsmap=None, **_extra)
The public Element class. All custom Element classes must inherit from this one. To create an Element, use the Element() factory.
BIG FAT WARNING: Subclasses must not override __init__ or __new__ as it is absolutely undefined when these objects will be created or destroyed. All persistent state of Elements must be stored in the underlying XML. If you really need to initialize the object after creation, you can implement an _init(self) method that will be called directly after object creation.
Subclasses of this class can be instantiated to create a new Element. By default, the tag name will be the class name and the namespace will be empty. You can modify this with the following class attributes:
In user code, the latter three are commonly inherited in class hierarchies that implement a common namespace.
|
|||
|
|||
a new object with type S, a subtype of T |
|
||
Inherited from Inherited from |
|
|||
Inherited from Inherited from |
|
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jan 2 16:06:02 2014 | http://epydoc.sourceforge.net |