Represents a block element in the input file.
More...
Represents a block element in the input file.
◆ __init__()
def warpy.generator.block.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
attrs = None , |
|
|
|
children = None |
|
) |
| |
- Parameters
-
name | node name |
attrs | list of tuples, first is the name, second is the value |
◆ __remove_special_chars__()
def warpy.generator.block.__remove_special_chars__ |
( |
|
self, |
|
|
|
text |
|
) |
| |
◆ __repr__()
def warpy.generator.block.__repr__ |
( |
|
self | ) |
|
◆ __str__()
def warpy.generator.block.__str__ |
( |
|
self | ) |
|
◆ append()
def warpy.generator.block.append |
( |
|
self, |
|
|
|
b |
|
) |
| |
◆ generate()
def warpy.generator.block.generate |
( |
|
self, |
|
|
|
parent = None |
|
) |
| |
Generate the element tree from this block.
◆ get_attr_text()
def warpy.generator.block.get_attr_text |
( |
|
self, |
|
|
|
indent = '' |
|
) |
| |
◆ attrs
warpy.generator.block.attrs |
◆ children
warpy.generator.block.children |
◆ name
warpy.generator.block.name |
The documentation for this class was generated from the following file: