l.a.b.r.LaunchpadRootIndexView(HasAnnouncementsView, LaunchpadView) : class documentation

Part of lp.app.browser.root View In Hierarchy

An view for the default view of the LaunchpadRoot.
Method initialize Set up featured projects list and the top featured project.
Method apphomes Undocumented
Method branch_count The total branch count of public branches in all of Launchpad.
Method gitrepository_count The total Git repository count in all of Launchpad.
Method bug_count The total bug count in all of Launchpad.
Method project_count The total project count in all of Launchpad.
Method translation_count The total count of translatable strings in all of Launchpad
Method blueprint_count The total blueprint count in all of Launchpad.
Method answer_count The total blueprint count in all of Launchpad.
Method show_whatslaunchpad True if introduction to Launchpad should be displayed.
Method getRecentBlogPosts Return the parsed feed of the most recent blog posts.
Static Method _get_day_of_year Calculate the number of the current day.
Method _setFeaturedProjectsTop Set the top featured project and remove it from the list.

Inherited from HasAnnouncementsView:

Method feed_url Undocumented
Method announcements Undocumented
Method latest_announcements Undocumented
Method has_announcements Undocumented
Method show_announcements Undocumented
Method announcement_nav Undocumented

Inherited from FeedsMixin (via HasAnnouncementsView):

Method feed_links Undocumented
@staticmethod
def _get_day_of_year():
Calculate the number of the current day.

This method gets overridden in tests to make the selection of the top featured project deterministic.

def initialize(self):
Set up featured projects list and the top featured project.
def _setFeaturedProjectsTop(self):
Set the top featured project and remove it from the list.
@cachedproperty
def apphomes(self):
Undocumented
@property
def branch_count(self):
The total branch count of public branches in all of Launchpad.
@property
def gitrepository_count(self):
The total Git repository count in all of Launchpad.
@property
def bug_count(self):
The total bug count in all of Launchpad.
@property
def project_count(self):
The total project count in all of Launchpad.
@property
def translation_count(self):
The total count of translatable strings in all of Launchpad
@property
def blueprint_count(self):
The total blueprint count in all of Launchpad.
@property
def answer_count(self):
The total blueprint count in all of Launchpad.
@property
def show_whatslaunchpad(self):
True if introduction to Launchpad should be displayed.

Shown when not logged in or if blog is disabled.

def getRecentBlogPosts(self):
Return the parsed feed of the most recent blog posts.

It returns a list of dict with keys title, description, link and date.

The date is formatted and the description which may contain HTML is sanitized.

The number of blog posts to display is controlled through launchpad.homepage_recent_posts_count. The posts are fetched from the feed specified in launchpad.homepage_recent_posts_feed.

FeedParser takes care of sanitizing the HTML contained in the feed.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.