From 2135e10739e28dc518a54a5a4ce5358d7e714bd2 Mon Sep 17 00:00:00 2001 From: Justin Bronn Date: Tue, 29 Jul 2008 22:02:58 +0000 Subject: [PATCH] gis: Removed unused `KMLSitemap` code that crept in outside the `contrib.gis` namespace. git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@8140 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/sitemaps/__init__.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/django/contrib/sitemaps/__init__.py b/django/contrib/sitemaps/__init__.py index 0671e3aa13..30949837e4 100644 --- a/django/contrib/sitemaps/__init__.py +++ b/django/contrib/sitemaps/__init__.py @@ -88,24 +88,3 @@ class GenericSitemap(Sitemap): if self.date_field is not None: return getattr(item, self.date_field) return None - - -class KMLSitemap(Sitemap): - """ - A minimal hook to - """ - def __init__(self, locations=None): - if locations is None: - self.locations = [] - else: - self.locations = locations - - def items(self): - return self.locations - - def location(self, obj): - urlresolvers.reverse('django.contrib.gis.sitemaps.kml', - kwargs={'label':obj[0], - 'field':obj[1]}) - -