Пример #1
0
 def sitemap(cls, page):
     sitemap_section = SitemapSection(cls, [
         ('displayed_on_eshop', '=', True),
         ('template.active', '=', True),
     ], page)
     sitemap_section.changefreq = 'daily'
     return sitemap_section.render()
Пример #2
0
 def sitemap(cls, page):
     sitemap_section = SitemapSection(
         cls, [
             ('active', '=', True),
         ], page
     )
     sitemap_section.changefreq = 'daily'
     return sitemap_section.render()
Пример #3
0
 def sitemap(cls, page):
     sitemap_section = SitemapSection(
         cls, [
             ('displayed_on_eshop', '=', True),
             ('template.active', '=', True),
         ], page
     )
     sitemap_section.changefreq = 'daily'
     return sitemap_section.render()
Пример #4
0
 def sitemap(cls, page):
     sitemap_section = SitemapSection(
         cls, [
             ('displayed_on_eshop', '=', True),
             ('id', 'in', request.nereid_website.get_categories())
         ], page
     )
     sitemap_section.changefreq = 'daily'
     return sitemap_section.render()
Пример #5
0
 def sitemap(self, page):
     categories = request.nereid_website.get_categories() + [None]
     sitemap_section = SitemapSection(
         self, [
             ('displayed_on_eshop', '=', True),
             ('category', 'in', categories)
         ], page
     )
     sitemap_section.changefreq = 'daily'
     return sitemap_section.render()
Пример #6
0
 def sitemap(cls, page):
     categories = request.nereid_website.get_categories() + [None]
     sitemap_section = SitemapSection(
         cls, [
             ('displayed_on_eshop', '=', True),
             ('category', 'in', categories),
             ('template.active', '=', True),
         ], page
     )
     sitemap_section.changefreq = 'daily'
     return sitemap_section.render()
Пример #7
0
 def sitemap(cls, page):
     sitemap_section = SitemapSection(cls, [], page)
     sitemap_section.changefreq = 'daily'
     return sitemap_section.render()
Пример #8
0
 def sitemap(cls, page):
     sitemap_section = SitemapSection(cls, [], page)
     sitemap_section.changefreq = 'daily'
     return sitemap_section.render()
Пример #9
0
 def sitemap(cls, page):
     sitemap_section = SitemapSection(cls, [
         ('active', '=', True),
     ], page)
     sitemap_section.changefreq = 'daily'
     return sitemap_section.render()