def __init__(self, verbosity): SitemapGenerator.__init__(self, verbosity) self.baseurl = self.normalize_url(conf.get_url())
def handle(self, **options): generator = SitemapGenerator(int(options.get('verbosity', 3))) generator.write()
def run(self, **kwargs): generator = SitemapGenerator(verbosity=1) generator.write()
def generate_sitemap(verbosity=1): generator = SitemapGenerator(verbosity=verbosity) generator.write()
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()
def run(self, **kwargs): translation.activate(conf.LANGUAGE) generator = SitemapGenerator() generator.write_index() translation.deactivate()