示例#1
0
文件: beerapi.py 项目: mtnesbitt/ABV
def initialize_inventory():
    location = FileLocation.save_location
    the_file = most_recent_file.MostRecentFile(location)
    style = style_db.StyleDB()
    inventory = Inventory(the_file, style)
    global queries
    queries = InventoryQueries(inventory)
示例#2
0
def make_test_inventory_query(test_file):
    test_file = test_file
    inventory = Inventory(BASE_DIR + test_file)
    return InventoryQueries(inventory)
示例#3
0
def make_queries(filename):
    return InventoryQueries(Inventory(BASE_DIR + filename))