Beispiel #1
0
 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
Beispiel #2
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
Beispiel #3
0
 def change_destination(destinatino_id, destination):
     Destination_LL.change_destination(destinatino_id, destination)
Beispiel #4
0
 def store_destination(destination):
     Destination_LL.store_destination(destination)
Beispiel #5
0
 def get_destination_page(search, page, items_per_page):
     return Destination_LL.get_destination_page(search, page,
                                                items_per_page)
Beispiel #6
0
 def get_number_of_destinations(search):
     return Destination_LL.get_number_of_destinations(search)