Esempio n. 1
0
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)
Esempio n. 2
0
def make_test_inventory_query(test_file):
    test_file = test_file
    inventory = Inventory(BASE_DIR + test_file)
    return InventoryQueries(inventory)
Esempio n. 3
0
def make_queries(filename):
    return InventoryQueries(Inventory(BASE_DIR + filename))