From 784dea9cee5e34808740b28dc7fc9614a60e7b20 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 29 Nov 2010 11:40:14 +0100 Subject: Mention Beautiful Soup dependency in the documentation (ref #283) --- docs/en/INSTALL.t2t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/en/INSTALL.t2t b/docs/en/INSTALL.t2t index a15c2dd..831b406 100644 --- a/docs/en/INSTALL.t2t +++ b/docs/en/INSTALL.t2t @@ -15,6 +15,7 @@ Last update: %%date(%m-%d-%Y) - [gettext http://www.gnu.org/software/gettext/] - [psycopg2 http://freshmeat.net/projects/psycopg/] - [Python Imaging Library http://www.pythonware.com/products/pil/] +- [Beautiful Soup http://www.crummy.com/software/BeautifulSoup/] geodjango is a part of django version 1.0 but it has some specific (geographically related) additionnal dependencies: @@ -30,7 +31,7 @@ Optionaly (but recommanded): - [tinymce http://tinymce.moxiecode.com/] -The simpliest way to obtain these packages is to get them from your favorite Linux distribution repositories (for instance python, python-django, tinymce, apache2, libapache2-mod-python, libgeos-3.2.0, proj, gdal-bin, python-psycopg2, python-imaging, postgresql-8.4 and postgresql-8.4-postgis packages for Debian Squeeze). If these packages do not exist in your distribution's repository, please refer to the applications' websites. +The simpliest way to obtain these packages is to get them from your favorite Linux distribution repositories (for instance python, python-django, python-beautifulsoup, tinymce, apache2, libapache2-mod-python, libgeos-3.2.0, proj, gdal-bin, python-psycopg2, python-imaging, postgresql-8.4 and postgresql-8.4-postgis packages for Debian Squeeze). If these packages do not exist in your distribution's repository, please refer to the applications' websites. +++ Database configuration +++ -- cgit v1.2.3 From d0237cf7f07de89b8f57076e0a98f24aca3067eb Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 29 Nov 2010 11:48:40 +0100 Subject: Mention Beautiful Soup dependency in the upgrade documentation (ref #283) --- docs/en/UPGRADE.t2t | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/en/UPGRADE.t2t b/docs/en/UPGRADE.t2t index 0f5a068..e57faad 100644 --- a/docs/en/UPGRADE.t2t +++ b/docs/en/UPGRADE.t2t @@ -8,6 +8,7 @@ Last update: %%date(%m-%d-%Y) ++ From version prior to 1.1 to 1.1 ++ Upgrade Django to the 1.2 version. +Install the [Beautiful Soup http://www.crummy.com/software/BeautifulSoup/] library. + Get the new version + -- cgit v1.2.3 From e79a5d739d1a3253a88fac3f66f6a41e6dfd9d80 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 29 Nov 2010 16:53:19 +0100 Subject: Correct zoom to area shortcut doesn't work anymore (closes #284) --- chimere/main/templatetags/unlocalize_point.py | 16 ++++++++++++++++ chimere/templates/main_map.html | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 chimere/main/templatetags/unlocalize_point.py 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) + diff --git a/chimere/templates/main_map.html b/chimere/templates/main_map.html index 526bf32..8b8cc2e 100644 --- a/chimere/templates/main_map.html +++ b/chimere/templates/main_map.html @@ -1,5 +1,6 @@ {% extends "base_user.html" %} {% load i18n %} +{% load unlocalize_point %} {% block message_edit %}{% endblock %} {% block sidebar %}{{ block.super }}
@@ -14,7 +15,7 @@ {%if areas%}

{% trans "Shortcuts"%}

    {% for area in areas%} -
  • {% trans "Zoom to" %} {{area.name}} {{area.name}}
  • {%endfor%} +
  • {% trans "Zoom to" %} {{area.name}} {{area.name}}
  • {%endfor%}
{%endif%} -- cgit v1.2.3