l.a.b.t.ObjectImageDisplayAPI : class documentation

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

Known subclasses: lp.app.browser.tales.ArchiveImageDisplayAPI, lp.app.browser.tales.BugTaskImageDisplayAPI, lp.app.browser.tales.BuildImageDisplayAPI, lp.app.browser.tales.KarmaCategoryImageDisplayAPI, lp.app.browser.tales.MilestoneImageDisplayAPI, lp.app.browser.tales.QuestionImageDisplayAPI, lp.app.browser.tales.SnapBuildRequestImageDisplayAPI, lp.app.browser.tales.SpecificationImageDisplayAPI

Base class for producing the HTML that presents objects as an icon, a logo, a mugshot or a set of badges.
Method __init__ Undocumented
Method sprite_css Return the CSS class for the sprite
Method default_logo_resource Undocumented
Method default_mugshot_resource Undocumented
Method custom_icon_url Return the URL for this object's icon.
Method icon Undocumented
Method logo Return the appropriate <img> tag for this object's logo.
Method mugshot Return the appropriate <img> tag for this object's mugshot.
Method badges Undocumented
Method boolean Return an icon representing the context as a boolean value.
def __init__(self, context):
Undocumented
def sprite_css(self):
Return the CSS class for the sprite
def default_logo_resource(self, context):
Undocumented
def default_mugshot_resource(self, context):
Undocumented
def custom_icon_url(self):
Return the URL for this object's icon.
def icon(self):
Undocumented
def logo(self):
Return the appropriate <img> tag for this object's logo.
ReturnsA string, or None if the context object doesn't have a logo.
def mugshot(self):
Return the appropriate <img> tag for this object's mugshot.
ReturnsA string, or None if the context object doesn't have a mugshot.
def badges(self):
Undocumented
def boolean(self):
Return an icon representing the context as a boolean value.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.