1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +00:00

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
This commit is contained in:
Justin Bronn 2008-07-29 22:02:58 +00:00
parent 25cfbd6d66
commit 2135e10739

View File

@ -88,24 +88,3 @@ class GenericSitemap(Sitemap):
if self.date_field is not None: if self.date_field is not None:
return getattr(item, self.date_field) return getattr(item, self.date_field)
return None 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]})