Wykres commitów

22 Commity (26c31e8cf9c10ac1bc27191372b5e9a70da0a5ee)

Autor SHA1 Wiadomość Data
David MENTRE c904c5f5a3 Avoid displaying donate-thanks page for Donate menu entry
Signed-off-by: David MENTRE <dmentre@linux-france.org>
2012-04-02 23:02:05 +02:00
Thomas Petazzoni 647a11cbc3 Add a Thanks for donation page
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-01 11:25:46 +02:00
Thomas Petazzoni 5e88849580 website: add donation button and page
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-30 16:10:19 +02:00
Maxime Petazzoni 67b3eaf377 Merge branch 'fixes-from-thomas' into ocitysmap2-integration 2010-08-07 12:00:17 +02:00
Thomas Petazzoni 4314d94f3b Completely rework the Nominatim search
On the Nominatim proxy side:

 * Instead of doing complex filtering/sorting on Nominatim results, we
   do a simple filtering on "places", in a fixed list. Results are
   kept sorted in Nominatim order.

 * Nominatim results are enriched with a validity field, and reason
   fields for non-validity (like "no admin boundary" or "area too
   large").

 * Nominatim results are also enriched with fields that allows to know
   whether previous/next entries are available through Nominatim (when
   the search returns more than 10 entries)

 * Simplify the query_nominatim() view arguments. It now takes all
   arguments through GET. 'q' for the query, 'exclude' for the set of
   places to exclude.

The Nominatim proxy code has also been split in several subfunctions
for easier readability.

The JavaScript code is updated accordingly:

 * Display the Nominatim icon as the list bullet. The bullet is not
   visible yet due to CSS issue.

 * Use the new valid/reason/reason_text fields of result entries to
   determine whether an entry is valid or not, and show why it isn't
   valid.

 * Show prev/next buttons that trigger another Ajax query to get the
   next/prev results.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-08-07 11:58:56 +02:00
Gaël Utard 70fa380a9b Fix the slow RSS feed.
Remove the overhead of parsing blog entries when generating the rss
feed. This saves a lot of CPU.

Signed-off-by: Gaël Utard <gael.utard@laposte.net>
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-08-07 11:56:04 +02:00
Pierre Mauduit fe6cc1e240 Add a Nominatim reverse-geocoding service
The service added aims to query (lat/lon) Nominatim, fetch the resulting
XML, parse it, then returns it into JSON.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-08-07 09:28:18 +02:00
Maxime Petazzoni 566412ea79 Only do static serve in debug mode
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-08-06 10:58:24 +02:00
Thomas Petazzoni 3b17bed3c8 Move Ajax service to the /apis/ directory
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-08-05 19:25:19 +02:00
Thomas Petazzoni 6457b6ea2b Implement a skeleton /papersize/ service
This service receives by post either a (osmid, layout) or a (bbox,
layout) and is responsible for asking OCitySMap what are the possible
paper size for the given geographic area. As OCitySMap doesn't
implement this feature yet, it is only a skeleton that returns a fixed
set of paper sizes.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-08-05 19:25:18 +02:00
Maxime Petazzoni 07a0d26ded Job cancel feature
This change introduces the job cancel feature as requested in bug #28488
(https://savannah.nongnu.org/bugs/?28488).

To do so, a new field called 'nonce' is added to the MapRenderingJob
model object (which results in a new column in the database, see below
how to recreate/update a current database). A random string, called the
nonce, is generated when the job is created and stored alongside the
other information on this job. The user is then redirected to the
/jobs/ID/NONCE page, instead of simply /jobs/ID.

As long as the user provides the correct nonce at the end of the URL, he
will have the ability, if the job is still in the queue, to cancel the
job request. The button to cancel the request is shown if and only if
the user provides the matching nonce string in the URL, which is only
displayed when the job is created.

A new job state is also created (4, Cancelled) to match this new
cancelled state.

As far as the database change goes, the easiest if you are only doing
development is to drop your database and recreate it with syncdb. If you
need to keep your data, you can simply add the column to the
maposmatic_maprenderingjob table using the following statement:

  ALTER TABLE maposmatic_maprenderingjob ADD COLUMN
    nonce varchar(16) NOT NULL;

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Acked-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2010-06-30 11:00:10 +02:00
Maxime Hadjinlian 5807cb7951 Remove pagination by letter
As discussed with the previous patch, the pagination by
letter is removed. It was too difficult to maintain with
non latin alphabet and it is now useless with the search being paginated.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-06-30 10:59:31 +02:00
Maxime Petazzoni 80ba18598d Implement the "Recreate Map" feature
Each completed job now features a "Recreate map" button that reschedules
a similar map on the queue. The button only appears for completed maps
(status >= 2), and triggers a rendering_already_exists() check before
creating a new MapRenderingJob.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-05-14 12:02:00 +02:00
Maxime Petazzoni efce93bac6 Add a rendered maps feed
This change introduces a RSS feeds for the successfully rendered maps
that still have their files available (status=2) from the last 24 hours
(or more to get at least 10 items when possible), using the Django
syndication framework.

It uses a custom map-feed.html template instead of the map.html in order
to include styling information directly in the HTML an accomodate for
the variable naming from the syndication framework.

This new MapOSMatic maps feed is now available from a traditional RSS
icon link on the maps page.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-02-10 13:37:04 +01:00
Maxime Petazzoni 7a2ef01783 Put the map generation form on its own page 2010-01-10 17:40:21 +01:00
Maxime Petazzoni b79ee90e75 Add by-letter maps pagination
Adds a by-letter browsing mechanism for maps, with local by-letter
paginators, accessible by /maps/[A-Z].

Some URL mapping cleanup and Django-isation, too.
2010-01-10 17:39:44 +01:00
David Decotigny b1789868a5 New /nominatim space reserved for the local gateway to nominatim
We query nominatim and present the results in json format for use by a
local javascript routine.
2009-12-20 01:24:10 +01:00
David Decotigny f302408d28 Support on-the-fly change of the locale settings.
Add a new Language menu on the left to allow the selection of any of
the supported languages. The list of supported languages is in the
settings.py file and is related to the .po files available in locales/.
2009-09-07 21:00:20 +02:00
David MENTRE 5b195c6178 Put maposmatic under AGPLv3 license 2009-08-31 19:36:21 +02:00
Thomas Petazzoni 2b13d8bc3f Support multiple rendering formats and display links to generated files 2009-08-29 17:23:11 +02:00
Thomas Petazzoni 616b3b39d0 Many improvements 2009-08-29 11:06:30 +02:00
Thomas Petazzoni 7c28357369 First import of maposmatic web service 2009-08-28 15:36:10 +02:00