l.t.b.p.BaseSeriesTemplatesView(LaunchpadView) : class documentation

Part of lp.translations.browser.potemplate View In Hierarchy

Known subclasses: lp.translations.browser.distroseries.DistroSeriesTemplatesView, lp.translations.browser.productseries.ProductSeriesTemplatesView

Show a list of all templates for the Series.
Method initialize Undocumented
Method iter_data Undocumented
Method rowCSSClass Undocumented
Method constructTemplateURL Build the URL for template.
Method renderTemplatesHeader Render HTML for the templates table header.
Method renderTemplateRow Render HTML for an entire template row.
Method _renderSourcePackage Render the SourcePackageName for template.
Method _renderTemplateLink Render a link to template.
Method _renderSharing Render a link to template.
Method _renderLastUpdateDate Render a template's "last updated" column.
Method _renderAction Render an action for the "actions" column.
Method _renderActionsColumn Render a template's "actions" column.
Method _renderField Create a table field of the given class and contents.
def initialize(self, series, is_distroseries=True):
Undocumented
def iter_data(self):
Undocumented
def rowCSSClass(self, template):
Undocumented
def _renderSourcePackage(self, template):
Render the SourcePackageName for template.
def _renderTemplateLink(self, template, url):
Render a link to template.
ParameterstemplateThe target POTemplate.
urlThe cached URL for template.
ReturnsHTML for a link to template.
def _renderSharing(self, template, packaging, productseries, upstream, other_template, sourcepackagename):
Render a link to template.
ParameterstemplateThe target POTemplate.
ReturnsHTML for the "sharing" status of template.
def _renderLastUpdateDate(self, template):
Render a template's "last updated" column.
def _renderAction(self, base_url, name, path, sprite, enabled):
Render an action for the "actions" column.
Parametersbase_urlThe cached URL for template.
nameAction name for display in the UI.
pathPath suffix for the action (relative to base_url).
spriteSprite class for the action.
enabledShow this action? If not, return empty string.
ReturnsHTML for the contents of the "actions" column.
def _renderActionsColumn(self, template, base_url):
Render a template's "actions" column.
def _renderField(self, column_class, content, tag='td'):
Create a table field of the given class and contents.
Parameterscolumn_classCSS class for this column.
contentHTML to go into the column. If None, the field will be omitted entirely. (To produce an empty column, pass the empty string instead.)
tagThe HTML tag to surround the field in.
ReturnsHTML for the entire table field, or the empty string if content was None.
def constructTemplateURL(self, template):
Build the URL for template.

Since this is performance-critical, views are allowed to override it with optimized implementations.

def renderTemplatesHeader(self):
Render HTML for the templates table header.
def renderTemplateRow(self, template, packaging=None, productseries=None, upstream=None, other_template=None, sourcepackagename=None):
Render HTML for an entire template row.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.