示例#1
0
def generate_inventory_html():
    db.sql_pull_db();   # Update our db class with the data stored in sqlite
    return env.get_template('inventory.tmpl').render(db=db, inventory=db._inventory_db).encode('ascii', 'ignore')
示例#2
0
def generate_liquor_inventory_form_html():
    db.sql_pull_db();   # Update our db class with the data stored in sqlite
    return env.get_template('liquor_inventory_form.tmpl').render(quote=urllib2.quote, bottle_types=db._bottle_types_db).encode('ascii', 'ignore')
示例#3
0
def generate_recipes_html():
    db.sql_pull_db();   # Update our db class with the data stored in sqlite
    return env.get_template('recipes.tmpl').render(db=db._recipes_db).encode('ascii', 'ignore')
示例#4
0
def generate_liquor_types_html():
    db.sql_pull_db();   # Update our db class with the data stored in sqlite
    return env.get_template('liquor_types.tmpl').render(liquor_types=db._bottle_types_db).encode('ascii', 'ignore')