Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Nov 24, 2015
  1. @dracos

    Disable project gzip middleware.

    dracos committed
    We can move gzipping to something in front of the application (varnish),
    and we are having issues with gzip combined with varnish's streaming,
    returning truncated results for certain requests.
Commits on Nov 18, 2015
  1. @dracos
  2. @h-lame

    Use modern transactions in mapit_UK_import_nspd_ni

    h-lame committed
    Django 1.6 deprecated `transaction.commit_manually` and Django 1.8 dropped
    it entirely so we have to use modern transactions.  There's no direct upgrade
    path from the old api to the modern one so we have to use a `transaction.atomic` block somewhere.  The old behaviour was that each row processed from the CSV by mapit_UK_import_nspd_ni would be in its own transaction and to achieve that we add `transaction.atomic` to each row processed by the base command: mapit_import_postal_codes.  A side-effect being that all postal code importers will now use transactions.
Commits on Nov 11, 2015
  1. @stevenday

    Forcefully register GDAL driver in import command tests

    stevenday committed
    To Workaround a Django bug here:
    which should be guarded by two separate checks of the driver_count,
    not a single combined one.
Commits on Nov 10, 2015
  1. @dracos

    Improve JSONP middleware handling.

    dracos committed
    Don't add callback to non-JSON responses, or to responses that already
    have a callback (presumably returned from a cache).
Commits on Nov 6, 2015
  1. @dracos

    Fix issue with JSONP of errors on streamed output.

    dracos committed
    If a callback variable was supplied for a view that errors (e.g. no
    polygons), then this led to a cacheable (200) response which contained a
    generator function (iterencode) in its _closable_objects attribute. The
    cache could not then pickle this attribute and so raised an exception.
    This was okay in previous versions because of a side effect of the
    smart_bytes workaround for Django bug #24240 that was in place; this
    was removed when support for Django prior to 1.8 was dropped.
    Fix the issue by using an identity map (as map has no close() method and
    so is not added to _closable_objects).
Commits on Oct 30, 2015
  1. @dracos
Commits on Oct 27, 2015
  1. @dracos
Commits on Oct 22, 2015
  1. @dracos

    Fix bug parsing KML with Unicode filename.

    dracos committed
    The xml.sax module in python2 prior to 2.7.4 cannot handle a Unicode
    filename (this was Python issue
    Make sure that we pass a str to xml.sax, which should be fine in any
    version of python. Fixes #206.
Commits on Sep 18, 2015
  1. @dracos

    Version 1.4.

    dracos committed
  2. @jonkri @dracos
  3. @longhotsummer @dracos

    Ensure /areas returns a FeatureCollection.

    longhotsummer committed with dracos
    This means the caller isn't surprised that sometimes the response is a
    polygon, and sometimes it's a feature collection. They always knows what
    type of object is going to come back and can act accordingly. If they
    know they only want a single item, they can use /area/1.geojson.
  4. @chris48s @dracos

    Support GeoJSON/KML for multiple areas.

    chris48s committed with dracos
    Fixes #136.
  5. @dracos

    Fix typo in area geometry links.

    dracos committed
    In 4d2b306 the text for covered/covering got swapped round by mistake.
Commits on Sep 15, 2015
  1. @mhl

    Add a command to raise the generation_high on current areas

    mhl committed
    This is useful if you've created a new generation for a new data
    import, but there are existing areas in the database that should
    still remain active after you've activated your new generation.
    After creating the new inactive generation you can run this command
    to raise the generation_high of any areas who have a generation_high
    set to the current (i.e. most recent active) generation so that
    they're the newly created generation.
    You could do this in the Django shell, but this seems like a safer
    way of doing this.
    This includes options for country / type restriction, as suggested
    by Matthew Somerville
Commits on Sep 11, 2015
  1. @dracos
Commits on Sep 10, 2015
  1. @mhl
  2. @dracos
Commits on Jul 14, 2015
  1. @dracos

    Run Django 1.9 py3 tests on Python 3.4.

    dracos committed
    Django 1.9 drops support for Python 3.2 and 3.3.
  2. @dracos

    Remove py3-incompatible use of unicode() function.

    dracos committed
    Finishing off changes started in e639caa and carried on in a9bd342.
Commits on Jun 23, 2015
  1. @dracos

    Actually run tests using tox.

    dracos committed
    On Travis, run 1.4 directly, to avoid strange translation issue.
Commits on Jun 9, 2015
  1. @chrismytton

    Fix link to geohack tool

    chrismytton committed
    Fixes #195
Commits on Jun 5, 2015
  1. @dracos

    Add tox for easier testing.

    dracos committed
  2. @dracos
Commits on May 31, 2015
  1. @dracos

    Fix workaround for Django ticket 24240 in Python 3

    dracos committed
    c3ff8fb used the wrong utility function in its workaround for, providing byte strings only
    in Python 2. This commit switches to the correct function, and changes a
    test to use the gzip middleware to show this is really fixed now.
Commits on May 27, 2015
  1. @dracos
Commits on May 12, 2015
  1. @mhl
Commits on May 10, 2015
  1. @dracos
  2. @dracos

    Merge in i18n branch.

    dracos committed
    Use same text on front page and licensing for translation ease.
    Regenerate .po and .mo files.
  3. @dracos
  4. @dracos
  5. @dracos
  6. @guglielmo @dracos

    [IT] Add URLs and base templates.

    guglielmo committed with dracos
    Don't show the partial postcode section.
  7. @guglielmo @dracos

    Use stdout.write in find parents command.

    guglielmo committed with dracos
    This avoids Unicode problems. Add a verbose processing line.
Commits on Apr 23, 2015
  1. @stevenday
Something went wrong with that request. Please try again.