summaryrefslogtreecommitdiff
path: root/chimere/main
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/main')
-rw-r--r--chimere/main/templatetags/unlocalize_point.py16
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)
+