def get_edit_info(item): if isinstance(item, Employee): return Employee_LL.get_edit_info(item) elif isinstance(item, Destination): return Destination_LL.get_edit_info(item) # ------------------------------------------- elif isinstance(item, Voyage): return Voyage_LL.get_edit_info(item) #------------------------- elif type(item) == type(Flight()): return Flight_LL.get_edit_info(item) else: 1 / 0
def get_info(item): if isinstance(item, Employee): return Employee_LL.get_info(item) elif isinstance(item, Aircraft): return Aircraft_LL.get_info(item) elif isinstance(item, Destination): return Destination_LL.get_info(item) # ------------------------------------------- elif isinstance(item, Voyage): return Voyage_LL.get_info(item) elif isinstance(item, Old_Voyage): return Old_Voyage_LL.get_info(item) #------------------------------- elif type(item) == type(Flight()): return Flight_LL.get_info(item) else: 1 / 0 # BOMBA
def change_destination(destinatino_id, destination): Destination_LL.change_destination(destinatino_id, destination)
def store_destination(destination): Destination_LL.store_destination(destination)
def get_destination_page(search, page, items_per_page): return Destination_LL.get_destination_page(search, page, items_per_page)
def get_number_of_destinations(search): return Destination_LL.get_number_of_destinations(search)