Module pyinventory.api.location_template
Functions
def apply_location_template_to_location(client: SymphonyClient, template_location: Location, location: Location) -> NoneType
def copy_equipment_with_all_attachments(client: SymphonyClient, equipment: Equipment, dest_location: Location) -> Dict[Equipment, Equipment]
-
Copy the equipment to the new location with all its attachments
Args
equipment (
Equipment
): could be retrieved from -get_equipment()
-get_equipment_in_position()
-add_equipment()
-add_equipment_to_position()
dest_location (
Location
): could be retrieved from -get_location()
-add_location()
Raises
FailedOperationException
- internal inventory error
Returns
Dict[
pyinventory.common.data_class.Equipment
,Equipment
] -Equipment
- source equipment -Equipment
- new equipmentThe dict includes the equipment given as parameter and also all the equipments attached to it