Part of lp.app.browser.root View In Hierarchy
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 |
This method gets overridden in tests to make the selection of the top featured project deterministic.
Shown when not logged in or if blog is disabled.
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.