示例#1
0
 def __init__(self, verbosity):
     SitemapGenerator.__init__(self, verbosity)
     self.baseurl = self.normalize_url(conf.get_url())
示例#2
0
 def handle(self, **options):
     generator = SitemapGenerator(int(options.get('verbosity', 3)))
     generator.write()
示例#3
0
 def run(self, **kwargs):
     generator = SitemapGenerator(verbosity=1)
     generator.write()
示例#4
0
 def run(self, **kwargs):
     generator = SitemapGenerator(verbosity=1)
     generator.write()
 def __init__(self, verbosity):
     SitemapGenerator.__init__(self, verbosity)
     self.baseurl = self.normalize_url(conf.get_url())
def generate_sitemap(verbosity=1):
    generator = SitemapGenerator(verbosity=verbosity)
    generator.write()
示例#7
0
 def handle_noargs(self, **options):
     translation.activate(conf.LANGUAGE)
     generator = SitemapGenerator()
     generator.write_index()
     translation.deactivate()
 def handle_noargs(self, **options):
     generator = SitemapGenerator(int(options.get('verbosity', 0)))
     generator.write()
示例#9
0
 def run(self, **kwargs):
     translation.activate(conf.LANGUAGE)
     generator = SitemapGenerator()
     generator.write_index()
     translation.deactivate()