Author: adrian
Date: 2006-08-31 18:31:25 -0500 (Thu, 31 Aug 2006)
New Revision: 3698

Modified:
   django/trunk/django/contrib/sitemap/__init__.py
   django/trunk/docs/sitemaps.txt
Log:
Changed FlatpageSitemap to FlatPageSitemap, to be consistent with FlatPage model

Modified: django/trunk/django/contrib/sitemap/__init__.py
===================================================================
--- django/trunk/django/contrib/sitemap/__init__.py     2006-08-31 23:19:53 UTC 
(rev 3697)
+++ django/trunk/django/contrib/sitemap/__init__.py     2006-08-31 23:31:25 UTC 
(rev 3698)
@@ -64,7 +64,7 @@
             urls.append(url_info)
         return urls
 
-class FlatpageSitemap(Sitemap):
+class FlatPageSitemap(Sitemap):
     def items(self):
         from django.contrib.sites.models import Site
         current_site = Site.objects.get_current()

Modified: django/trunk/docs/sitemaps.txt
===================================================================
--- django/trunk/docs/sitemaps.txt      2006-08-31 23:19:53 UTC (rev 3697)
+++ django/trunk/docs/sitemaps.txt      2006-08-31 23:31:25 UTC (rev 3698)
@@ -208,13 +208,13 @@
 
 The sitemap framework provides a couple convenience classes for common cases:
 
-``FlatpageSitemap``
+``FlatPageSitemap``
 -------------------
 
-The ``FlatpageSitemap`` class looks at all flatpages_ defined for the current
-``SITE_ID`` (see the `sites documentation`_) and creates an entry in the
-sitemap. These entries include only the ``location`` attribute -- not
-``lastmod``, ``changefreq`` or ``priority``.
+The ``django.contrib.sitemaps.FlatPageSitemap`` class looks at all flatpages_
+defined for the current ``SITE_ID`` (see the `sites documentation`_) and
+creates an entry in the sitemap. These entries include only the ``location``
+attribute -- not ``lastmod``, ``changefreq`` or ``priority``.
 
 .. _flatpages: http://www.djangoproject.com/documentation/flatpages/
 .. _sites documentation: http://www.djangoproject.com/documentation/sites/
@@ -239,7 +239,7 @@
 Here's an example of a URLconf_ using both::
 
     from django.conf.urls.defaults import *
-    from django.contrib.sitemap import FlatpageSitemap, GenericSitemap
+    from django.contrib.sitemap import FlatPageSitemap, GenericSitemap
     from mysite.blog.models import Entry
 
     info_dict = {
@@ -248,7 +248,7 @@
     }
 
     sitemaps = {
-        'flatpages': FlatpageSitemap,
+        'flatpages': FlatPageSitemap,
         'blog': GenericSitemap(info_dict, priority=0.6),
     }
 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to