git_sitools_idoc / webstatDev / idoc_Maison / webstat / templatetags / per_cent_filters.py @ 8792cad8
1 | 8792cad8 | Marc NICOLAS | 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 |