app/django/contrib/gis/tests/geoapp/sitemaps.py
author Todd Larsen <tlarsen@google.com>
Sat, 22 Nov 2008 10:29:13 +0000
changeset 551 2ee7ad5266a8
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Define a default for rights['public'] in views/models/base.py. Alter rights in views/models/site.py to allow anyone, even signed-out users, to view the site home page. Patch by: Todd Larsen

from django.contrib.gis.sitemaps import GeoRSSSitemap, KMLSitemap, KMZSitemap
from models import City, Country
from feeds import feed_dict

sitemaps = {'kml' : KMLSitemap([City, Country]),
            'kmz' : KMZSitemap([City, Country]),
            'georss' : GeoRSSSitemap(feed_dict),
            }