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