예제 #1
0
def get_restaurantname(city, area):
    try:
        restaurant_name1 = input("Enter the restaurant name:")
        restaurant_name = restaurant_name1.upper()
        list_of_restaurants = Validate.validate_hotel_name(
            city, area, restaurant_name)
        print(restaurant_name)
        FoodModule.Food.restaurant_name = restaurant_name
        FoodModule.Food.restaurant_city = city
        FoodModule.Food.restaurant_area = area
    except CustomException2.Invalidselectname as e:
        print(e)
    except Exception as e:
        print("Sorry. Some system error occurred")
        print(e)
예제 #2
0
def get_restaurantname(city, area):
    try:
        restaurant_name1 = input("Enter the restaurant name:")
        restaurant_name = restaurant_name1.upper()
        list_of_restaurants = Validate.validate_hotel_name(
            city, area, restaurant_name)
        print(restaurant_name)

        #Saving to Global Project Variables
        FoodModule.Food.restaurant_name = restaurant_name
        FoodModule.Food.restaurant_city = city
        FoodModule.Food.restaurant_area = area

        from functionality import ViewFunctions
        #Calling Module 3
        print("Calling Module 3")
        ViewFunctions.view_category()

    except CustomException2.Invalidselectname as e:
        print(e)
    except Exception as e:
        print("Sorry. Some system error occurred")
        print(e)