Ticket #15707: 15707.2.diff

File 15707.2.diff, 1.7 KB (added by jbronn, 14 years ago)
  • django/contrib/gis/feeds.py

    diff -r 1db2db0cdf8b django/contrib/gis/feeds.py
    a b  
    1 from django.contrib.syndication.feeds import Feed as BaseFeed, FeedDoesNotExist
     1from django.contrib.syndication.views import Feed as BaseFeed, FeedDoesNotExist
    22from django.utils.feedgenerator import Atom1Feed, Rss201rev2Feed
    33
    44class GeoFeedMixin(object):
  • django/contrib/gis/tests/geoapp/urls.py

    diff -r 1db2db0cdf8b django/contrib/gis/tests/geoapp/urls.py
    a b  
    11from django.conf.urls.defaults import *
    2 from feeds import feed_dict
     2from feeds import TestGeoRSS1, TestGeoRSS2, TestGeoAtom1, TestGeoAtom2, \
     3    TestW3CGeo1, TestW3CGeo2, TestW3CGeo3
    34
    45urlpatterns = patterns('',
    5     (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feed_dict}),
     6    (r'^feeds/rss1/$',  TestGeoRSS1()),
     7    (r'^feeds/rss2/$',  TestGeoRSS2()),
     8    (r'^feeds/atom1/$', TestGeoAtom1()),
     9    (r'^feeds/atom2/$', TestGeoAtom2()),
     10    (r'^feeds/w3cgeo1/$', TestW3CGeo1()),
     11    (r'^feeds/w3cgeo2/$', TestW3CGeo2()),
     12    (r'^feeds/w3cgeo3/$', TestW3CGeo3()),
    613)
    714
    815from sitemaps import sitemaps
     
    1017    (r'^sitemap.xml$', 'index', {'sitemaps' : sitemaps}),
    1118    (r'^sitemaps/(?P<section>\w+)\.xml$', 'sitemap', {'sitemaps' : sitemaps}),
    1219    (r'^sitemaps/kml/(?P<label>\w+)/(?P<model>\w+)/(?P<field_name>\w+)\.kml$', 'kml'),
    13     (r'^sitemaps/kml/(?P<label>\w+)/(?P<model>\w+)/(?P<field_name>\w+)\.kmz$', 'kmz'),               
     20    (r'^sitemaps/kml/(?P<label>\w+)/(?P<model>\w+)/(?P<field_name>\w+)\.kmz$', 'kmz'),
    1421)
Back to Top