コード例 #1
0
def showAllItemsJSON():
    """
	Get a lsit of all of the items in JSON format.
	
	URLs:
		'/catalog/item/all/JSON/'
	
	Args:
		None
	"""

    items = readAllItems()
    return jsonify(items=[i.serialize for i in items])
コード例 #2
0
def showAllItemsJSON():
	"""
	Get a lsit of all of the items in JSON format.
	
	URLs:
		'/catalog/item/all/JSON/'
	
	Args:
		None
	"""

	items = readAllItems()
	return jsonify(items=[i.serialize for i in items])
コード例 #3
0
def showAllItems():
    """
	Show all of the items in the catalog.
	
	URLs:
		'/catalog/items/all/'
		
	Args:
		None
	"""

    items = readAllItems()
    return render_template('show_all_items.html', items=items)
コード例 #4
0
def showAllItems():
	"""
	Show all of the items in the catalog.
	
	URLs:
		'/catalog/items/all/'
		
	Args:
		None
	"""

	items = readAllItems()
	return render_template('show_all_items.html', items=items)