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
254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 | |
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
270 271 272 273 274 275 276 277 278 | |