Django

Code

Changeset 3698

Show
Ignore:
Timestamp:
08/31/06 18:31:25 (2 years ago)
Author:
adrian
Message:

Changed FlatpageSitemap? to FlatPageSitemap?, to be consistent with FlatPage? model

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/sitemap/__init__.py

    r3694 r3698  
    6565        return urls 
    6666 
    67 class FlatpageSitemap(Sitemap): 
     67class FlatPageSitemap(Sitemap): 
    6868    def items(self): 
    6969        from django.contrib.sites.models import Site 
  • django/trunk/docs/sitemaps.txt

    r3696 r3698  
    209209The sitemap framework provides a couple convenience classes for common cases: 
    210210 
    211 ``FlatpageSitemap`` 
     211``FlatPageSitemap`` 
    212212------------------- 
    213213 
    214 The ``FlatpageSitemap`` class looks at all flatpages_ defined for the current 
    215 ``SITE_ID`` (see the `sites documentation`_) and creates an entry in the 
    216 sitemap. These entries include only the ``location`` attribute -- not 
    217 ``lastmod``, ``changefreq`` or ``priority``. 
     214The ``django.contrib.sitemaps.FlatPageSitemap`` class looks at all flatpages_ 
     215defined for the current ``SITE_ID`` (see the `sites documentation`_) and 
     216creates an entry in the sitemap. These entries include only the ``location`` 
     217attribute -- not ``lastmod``, ``changefreq`` or ``priority``. 
    218218 
    219219.. _flatpages: http://www.djangoproject.com/documentation/flatpages/ 
     
    240240 
    241241    from django.conf.urls.defaults import * 
    242     from django.contrib.sitemap import FlatpageSitemap, GenericSitemap 
     242    from django.contrib.sitemap import FlatPageSitemap, GenericSitemap 
    243243    from mysite.blog.models import Entry 
    244244 
     
    249249 
    250250    sitemaps = { 
    251         'flatpages': FlatpageSitemap, 
     251        'flatpages': FlatPageSitemap, 
    252252        'blog': GenericSitemap(info_dict, priority=0.6), 
    253253    }