django.contrib.sitemaps.management.commands.ping_google: 9 total statements, 0.0% covered

Generated: Wed 2013-03-13 10:33 CET

Source file: /media/Envs/Envs/filer-gallery/lib/python2.7/site-packages/django/contrib/sitemaps/management/commands/ping_google.py

Stats: 0 executed, 7 missed, 2 excluded, 5 ignored

  1. from django.core.management.base import BaseCommand
  2. from django.contrib.sitemaps import ping_google
  3. class Command(BaseCommand):
  4. help = "Ping Google with an updated sitemap, pass optional url of sitemap"
  5. def execute(self, *args, **options):
  6. if len(args) == 1:
  7. sitemap_url = args[0]
  8. else:
  9. sitemap_url = None
  10. ping_google(sitemap_url=sitemap_url)