Alteration¤
Alteration
dataclass
¤
Represents the alteration element in an equipment register.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
date
|
date
|
The date that the alteration was performed. |
required |
details
|
str
|
The details of the alteration. |
required |
performed_by
|
str
|
The person or company that performed the alteration. |
required |
performed_by
instance-attribute
¤
performed_by: str
The person or company that performed the alteration.
from_xml
classmethod
¤
from_xml(element: Element[str]) -> Alteration
Convert an XML element into an Alteration instance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
element
|
Element[str]
|
An alteration XML element from an equipment register. |
required |
Returns:
Type | Description |
---|---|
Alteration
|
The Alteration instance. |
Source code in src/msl/equipment/schema.py
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 |
|
to_xml
¤
Convert the Alteration class into an XML element.
Returns:
Type | Description |
---|---|
Element[str]
|
The Alteration as an XML element. |
Source code in src/msl/equipment/schema.py
223 224 225 226 227 228 229 230 231 |
|