コード例 #1
0
ファイル: filtersearch.py プロジェクト: SensehacK/playgrounds
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)