Пример #1
0
def validate_item_present(category_items, restaurant_name):

    list_of_restaurant_categories = ViewDB.get_selected_food_items_present(
        category_items, restaurant_name)
    if (len(list_of_restaurant_categories) == 0):
        #print("Raising Exception")
        raise Validate_item_present()

    return list_of_restaurant_categories
Пример #2
0
def validate_item_present(category_items):
    #     print("///////////////////validate_item_present////////////////////")
    #     print("In function validate_item_present")
    #     print("In validate function class  /validate_item_present")

    list_of_restaurant_categories = ViewDB.get_selected_food_items_present(
        category_items)
    if (len(list_of_restaurant_categories) == 0):
        #print("Raising Exception")
        raise Validate_item_present()

    return list_of_restaurant_categories