summaryrefslogtreecommitdiff
path: root/chimere/main
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2010-11-29 16:53:19 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2010-11-29 16:53:19 +0100
commite79a5d739d1a3253a88fac3f66f6a41e6dfd9d80 (patch)
tree076a312f54454efb8c3b408774a04ae9c9bcd766 /chimere/main
parentd0237cf7f07de89b8f57076e0a98f24aca3067eb (diff)
downloadChimère-e79a5d739d1a3253a88fac3f66f6a41e6dfd9d80.tar.bz2
Chimère-e79a5d739d1a3253a88fac3f66f6a41e6dfd9d80.zip
Correct zoom to area shortcut doesn't work anymore (closes #284)
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)
+