import sys, bottle, sqlite3, json

sys.path.insert(0, 'classes')
from inventorydao import InventoryDAO

# Turn on debug mode - templates will not be cached
bottle.debug(True)

# This tells Bottle where to find the views
bottle.TEMPLATE_PATH.append('views')

# Data
dbConn = sqlite3.connect('data/database.db')
dbConn.row_factory = sqlite3.Row

# Data Abstraction Objects
invDAO = InventoryDAO(dbConn)
categories = invDAO.getCategories()

# Routing
@bottle.get('/static/<filepath:path>')
def static(filepath):
    return bottle.static_file(filepath, root='static')

@bottle.get('/')
def index():
    return bottle.template('index', {
        'categories': invDAO.getCategories()
    })

bottle.run()

5fcb7f6e0838c55556fe457bdb42aa97b12c9a2e
<mask token>


@bottle.get('/static/<filepath:path>')
def static(filepath):
    return bottle.static_file(filepath, root='static')


@bottle.get('/')
def index():
    return bottle.template('index', {'categories': invDAO.getCategories()})


<mask token>

<mask token>
sys.path.insert(0, 'classes')
<mask token>
bottle.debug(True)
bottle.TEMPLATE_PATH.append('views')
<mask token>


@bottle.get('/static/<filepath:path>')
def static(filepath):
    return bottle.static_file(filepath, root='static')


@bottle.get('/')
def index():
    return bottle.template('index', {'categories': invDAO.getCategories()})


bottle.run()

<mask token>
sys.path.insert(0, 'classes')
<mask token>
bottle.debug(True)
bottle.TEMPLATE_PATH.append('views')
dbConn = sqlite3.connect('data/database.db')
dbConn.row_factory = sqlite3.Row
invDAO = InventoryDAO(dbConn)
categories = invDAO.getCategories()


@bottle.get('/static/<filepath:path>')
def static(filepath):
    return bottle.static_file(filepath, root='static')


@bottle.get('/')
def index():
    return bottle.template('index', {'categories': invDAO.getCategories()})


bottle.run()

import sys, bottle, sqlite3, json
sys.path.insert(0, 'classes')
from inventorydao import InventoryDAO
bottle.debug(True)
bottle.TEMPLATE_PATH.append('views')
dbConn = sqlite3.connect('data/database.db')
dbConn.row_factory = sqlite3.Row
invDAO = InventoryDAO(dbConn)
categories = invDAO.getCategories()


@bottle.get('/static/<filepath:path>')
def static(filepath):
    return bottle.static_file(filepath, root='static')


@bottle.get('/')
def index():
    return bottle.template('index', {'categories': invDAO.getCategories()})


bottle.run()

import sys, bottle, sqlite3, json

sys.path.insert(0, 'classes')
from inventorydao import InventoryDAO

# Turn on debug mode - templates will not be cached
bottle.debug(True)

# This tells Bottle where to find the views
bottle.TEMPLATE_PATH.append('views')

# Data
dbConn = sqlite3.connect('data/database.db')
dbConn.row_factory = sqlite3.Row

# Data Abstraction Objects
invDAO = InventoryDAO(dbConn)
categories = invDAO.getCategories()

# Routing
@bottle.get('/static/<filepath:path>')
def static(filepath):
    return bottle.static_file(filepath, root='static')

@bottle.get('/')
def index():
    return bottle.template('index', {
        'categories': invDAO.getCategories()
    })

bottle.run()
