Author: adrian
Date: 2006-08-31 18:58:38 -0500 (Thu, 31 Aug 2006)
New Revision: 3704

Modified:
   djangoproject.com/django_website/sitemaps.py
Log:
Removed lastmod() in djangoproject.com sitemap classes, because comments will 
throw that out of whack

Modified: djangoproject.com/django_website/sitemaps.py
===================================================================
--- djangoproject.com/django_website/sitemaps.py        2006-08-31 23:55:35 UTC 
(rev 3703)
+++ djangoproject.com/django_website/sitemaps.py        2006-08-31 23:58:38 UTC 
(rev 3704)
@@ -35,8 +35,8 @@
     def items(self):
         return Entry.objects.filter(pub_date__lte=datetime.datetime.now())
 
-    def lastmod(self, obj):
-        return obj.pub_date
+    # lastmod is not implemented, because weblog pages contain comments.
+    # We'd rather not look up the date of the latest comment -- not worth the 
overhead.
 
 class DocumentationSitemap(Sitemap):
     changefreq = 'weekly'
@@ -45,5 +45,5 @@
     def items(self):
         return Document.objects.all()
 
-    def lastmod(self, obj):
-        return obj.last_updated
+    # lastmod is not implemented, because documentation contains comments.
+    # We'd rather not look up the date of the latest comment -- not worth the 
overhead.


--~--~---------~--~----~------------~-------~--~----~
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