]> asedeno.scripts.mit.edu Git - bluechips.git/blob - bluechips/lib/helpers.py
Small indentation fix to model/__init__
[bluechips.git] / bluechips / lib / helpers.py
1 """Helper functions
2
3 Consists of functions to typically be used within templates, but also
4 available to Controllers. This module is available to both as 'h'.
5 """
6 from routes import url_for, redirect_to
7 from webhelpers.html import escape, literal, url_escape
8 from webhelpers.html.tags import *
9
10 from decimal import Decimal
11
12 def bluechips():
13     return '<span class="bluechips">BlueChips</span>'
14
15 def round_currency(value):
16     return Decimal(value).quantize(Decimal('0.01'))