c.l.w.t.ObjectImageDisplayAPI : class documentation

Part of canonical.launchpad.webapp.tales View In Hierarchy

Known subclasses: canonical.launchpad.webapp.tales.ArchiveImageDisplayAPI, canonical.launchpad.webapp.tales.BugTaskImageDisplayAPI, canonical.launchpad.webapp.tales.BuildImageDisplayAPI, canonical.launchpad.webapp.tales.KarmaCategoryImageDisplayAPI, canonical.launchpad.webapp.tales.MilestoneImageDisplayAPI, canonical.launchpad.webapp.tales.QuestionImageDisplayAPI, canonical.launchpad.webapp.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 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.
Method _get_custom_icon_url Return the URL for this object's icon.
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 _get_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 2010-09-27 00:00:11.