git_sitools_idoc / webstatDev / idoc_Maison / webstat / templatetags / per_cent_filters.py @ 94284c9a
1 |
from django import template |
---|---|
2 |
register = template.Library() |
3 |
|
4 |
#!/usr/bin/env python
|
5 |
#-*-coding:utf-8-*-
|
6 |
|
7 |
__version__ = "0.1"
|
8 |
__license__ = "GPL"
|
9 |
__author__ = "Marc NICOLAS"
|
10 |
__credit__ = "Marc NICOLAS"
|
11 |
__maintainer__ = "Marc NICOLAS"
|
12 |
__email__ = "marc.nicolas@ias.u-psud.fr"
|
13 |
|
14 |
@register.filter()
|
15 |
def per_cent_filters(value): |
16 |
print "VALUE : ", value |
17 |
return value * 100 |
18 |
|