Fixed #8574 -- Made Sitemap a new-style class

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9052 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2008-09-17 04:56:04 +00:00
parent c1bed37715
commit 660180df30
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ def ping_google(sitemap_url=None, ping_url=PING_URL):
params = urllib.urlencode({'sitemap':url}) params = urllib.urlencode({'sitemap':url})
urllib.urlopen("%s?%s" % (ping_url, params)) urllib.urlopen("%s?%s" % (ping_url, params))
class Sitemap: class Sitemap(object):
# This limit is defined by Google. See the index documentation at # This limit is defined by Google. See the index documentation at
# http://sitemaps.org/protocol.php#index. # http://sitemaps.org/protocol.php#index.
limit = 50000 limit = 50000