skip to navigation
skip to content

Not Logged In

sentry-geo 0.0.0

A Sentry plugin that adds support for geo data.

A plugin for Sentry which works with geo data. This adds a sentry_geo.interfaces.Geo interface which allows you to draw maps on your event pages.

This is just a hack to see how easy it would be to add custom interfaces to Sentry via plugins. Support for additional geo data types could be added, but this is probably not the ideal way to write interfaces.

Interface

Geographic points use following interface:

{
    "sentry_geo.interfaces.Geo": {
        "lat": 12.321,
        "lon": 45.654,
    }
}

Install

Install the package via pip:

pip install sentry-geo

Add sentry_geo to your INSTALLED_APPS:

INSTALLED_APPS = (
    # ...
    'sentry',
    'sentry_geo',
)

You'll need to add the following lines to your urls.py:

import sentry_geo
sentry_geo_static_root = os.path.join(os.path.dirname(sentry_geo.__file__), 'static')

urlpatterns = patterns('',
    url(r'^_sentry_geo_static/(?P<path>.*)$', generic.static_media,
        kwargs={'root': sentry_geo_static_root},
        name='sentry-geo-static'),
) + urlpatterns

I'm still looking for a solution that doesn't involve overwriting urls.py.

 
File Type Py Version Uploaded on Size
sentry-geo-0.0.0.tar.gz (md5) Source 2012-07-01 315KB
  • Downloads (All Versions):
  • 1 downloads in the last day
  • 18 downloads in the last week
  • 135 downloads in the last month
  • Author: Chris Faulkner
  • Home Page: http://github.com/faulkner/sentry-geo
  • License:
    Copyright (c) 2012, Chris Faulkner
    
    All rights reserved.
    
    Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
    
    Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
    Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  • Categories
  • Package Index Owner: chrisfaulkner
  • DOAP record: sentry-geo-0.0.0.xml