mirror of
https://github.com/django/django.git
synced 2025-07-04 01:39:20 +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:
parent
25cfbd6d66
commit
2135e10739
@ -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]})
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user