Django

Code

Changeset 8140

Show
Ignore:
Timestamp:
07/29/08 17:02:58 (4 months ago)
Author:
jbronn
Message:

gis: Removed unused KMLSitemap code that crept in outside the contrib.gis namespace.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/gis/django/contrib/sitemaps/__init__.py

    r5751 r8140  
    8989            return getattr(item, self.date_field) 
    9090        return None 
    91  
    92  
    93 class KMLSitemap(Sitemap): 
    94     """ 
    95     A minimal hook to  
    96     """ 
    97     def __init__(self, locations=None): 
    98         if locations is None: 
    99             self.locations = [] 
    100         else: 
    101             self.locations = locations 
    102  
    103     def items(self): 
    104         return self.locations 
    105  
    106     def location(self, obj): 
    107         urlresolvers.reverse('django.contrib.gis.sitemaps.kml', 
    108                              kwargs={'label':obj[0], 
    109                                      'field':obj[1]}) 
    110          
    111