Exemplo n.º 1
0
 def __init__(self, *args, **kwargs):
     """
     Use the title and description of the Blog page for the feed's
     title and description. If the blog page has somehow been
     removed, fall back to the ``SITE_TITLE`` and ``SITE_TAGLINE``
     settings.
     """
     super(PostsRSS, self).__init__(*args, **kwargs)
     page = blog_page()
     if page is not None:
         self.title = page.title
         self.description = strip_tags(page.description)
     else:
         settings.use_editable()
         self.title = settings.SITE_TITLE
         self.description = settings.SITE_TAGLINE
Exemplo n.º 2
0
 def __init__(self, *args, **kwargs):
     """
     Use the title and description of the Blog page for the feed's
     title and description. If the blog page has somehow been
     removed, fall back to the ``SITE_TITLE`` and ``SITE_TAGLINE``
     settings.
     """
     super(PostsRSS, self).__init__(*args, **kwargs)
     page = blog_page()
     if page is not None:
         self.title = page.title
         self.description = strip_tags(page.description)
     else:
         settings.use_editable()
         self.title = settings.SITE_TITLE
         self.description = settings.SITE_TAGLINE
Exemplo n.º 3
0
 def description(self):
     return strip_tags(blog_page().description)
Exemplo n.º 4
0
 def title(self):
     return blog_page().title
Exemplo n.º 5
0
 def description(self):
     return strip_tags(blog_page().description)
Exemplo n.º 6
0
 def title(self):
     return blog_page().title