l.a.b.b.HasBadgeBase : class documentation

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

Known subclasses: lp.code.browser.branchlisting.BranchBadges, lp.registry.browser.team.TeamBadges, lp.soyuz.browser.archive.ArchiveBadges

The standard base implementation for badge visibility.

Derived classes need to provide a sequence of badge names that could be visible available through the attribute badges.

The visibility of these badges are checked by calling a method like isFooBadgeVisible where Foo is the capitalised name of the badge.

Method __init__ Undocumented
Method isPrivateBadgeVisible Undocumented
Method getVisibleBadges See IHasBadges.
Method getBadge Return the badge instance for the name specified.
Method _isBadgeVisible Is the badge_name badge visible for the logged in user?
Method _getBadgeTitle Does the badge_name badge have a custom title?
def __init__(self, context):
Undocumented
def isPrivateBadgeVisible(self):
Undocumented
def getVisibleBadges(self):
See IHasBadges.
def _isBadgeVisible(self, badge_name):
Is the badge_name badge visible for the logged in user?

Delegate the determination to a method based on the name of the badge.

def _getBadgeTitle(self, badge_name):
Does the badge_name badge have a custom title?

Delegate the determination to a method based on the name of the badge.

def getBadge(self, badge_name):
Return the badge instance for the name specified.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.