diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2010-11-29 16:57:44 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2010-11-29 16:57:44 +0100 |
| commit | a70f42afd6ac576cf90db5bd656fa1c01e3328a1 (patch) | |
| tree | f49c252dc27902495a8487f555f30c3a289b4b13 /chimere/main | |
| parent | f5a4e1ba6a72ce003c896524be3a0c8179e91c36 (diff) | |
| parent | e79a5d739d1a3253a88fac3f66f6a41e6dfd9d80 (diff) | |
| download | Chimère-a70f42afd6ac576cf90db5bd656fa1c01e3328a1.tar.bz2 Chimère-a70f42afd6ac576cf90db5bd656fa1c01e3328a1.zip | |
Merge branch 'master' into carte-ouverte
Diffstat (limited to 'chimere/main')
| -rw-r--r-- | chimere/main/templatetags/unlocalize_point.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chimere/main/templatetags/unlocalize_point.py b/chimere/main/templatetags/unlocalize_point.py new file mode 100644 index 0000000..f52a90a --- /dev/null +++ b/chimere/main/templatetags/unlocalize_point.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +from django import template +import re + +register = template.Library() + +def unlocalize_point(value): + """ + Basic unlocalize filter for django 1.2 + """ + return unicode(value).replace(',', '.') + +register.filter(unlocalize_point) + |
