def test_potemplate(self): product = self.factory.makeProduct( name='crumb-tester', displayname="Crumb Tester", translations_usage=ServiceUsage.LAUNCHPAD) series = self.factory.makeProductSeries(name="test", product=product) potemplate = self.factory.makePOTemplate(name="template", productseries=series) self.assertBreadcrumbs( [("Crumb Tester", "http://launchpad.dev/crumb-tester"), ("Series test", "http://launchpad.dev/crumb-tester/test"), ("Translations", "http://translations.launchpad.dev/crumb-tester/test"), (smartquote('Template "template"'), "http://translations.launchpad.dev/" "crumb-tester/test/+pots/template")], potemplate)
def test_potemplate(self): product = self.factory.makeProduct( name='crumb-tester', displayname="Crumb Tester", translations_usage=ServiceUsage.LAUNCHPAD) series = self.factory.makeProductSeries( name="test", product=product) potemplate = self.factory.makePOTemplate( name="template", productseries=series) self.assertBreadcrumbs( [("Crumb Tester", "http://launchpad.dev/crumb-tester"), ("Series test", "http://launchpad.dev/crumb-tester/test"), ("Translations", "http://translations.launchpad.dev/crumb-tester/test"), (smartquote('Template "template"'), "http://translations.launchpad.dev/" "crumb-tester/test/+pots/template")], potemplate)
def page_title(self): """Return a relevant page title for this view.""" return smartquote( 'Change details for builder "%s"' % self.context.title)
def label(self): """The form label.""" return smartquote('Add a download file to %s' % self.context.title)
def label(self): return smartquote('Current documentation for "%s"' % self.context.displayname)
def page_title(self): return smartquote(self.context.title)
def label(self): """The form label.""" return smartquote('Create a new release for %s' % self.context.product.displayname)
def label(self): """<h1> for the change log page.""" return smartquote("Change logs for " + self.context.title)
def page_title(self): return smartquote("Search %s's packages" % self.context.displayname)
def text(self): return smartquote('"%s" package') % ( self.context.sourcepackagename.name)
def text(self): return smartquote('Template "%s"' % self.context.name)
def page_title(self): return smartquote( 'Edit subscription to branch "%s"' % self.branch.displayname)
def label(self): return smartquote('Confirm attachment type of "%s"') % ( self.context.title)
def label(self): return smartquote('Edit attachment "%s"') % self.context.title
def label(self): """The form label.""" return smartquote('Delete %s' % self.context.title)
def page_title(self): return smartquote( u'The "%s" bug tracker in Launchpad' % self.context.title)
def label(self): """The form label.""" return smartquote('Edit %s release details' % self.context.title)
def label(self): return 'Publishing history of %s' % smartquote(self.context.title)
def label(self): return smartquote(self.context.title)
def label(self): target_displayname = self.context.translation_target.displayname return smartquote('Custom language code "%s" for %s' % (self.context.language_code, target_displayname))
def label(self): return smartquote('Review discussion topics for "%s" sprint' % self.context.title)
def label(self): return smartquote( 'Build history for "%s"' % self.context.title)
def label(self): return smartquote('Delete "%s" sprint' % self.context.displayname)
def label(self): target_displayname = self.context.translation_target.displayname return smartquote( 'Custom language code "%s" for %s' % ( self.context.language_code, target_displayname))
def label(self): return smartquote( 'Blueprint assignments for "%s"' % self.context.displayname)
def text(self): return smartquote( 'Custom language code "%s"' % self.context.language_code)
def label(self): return smartquote( 'Consider agenda item for "%s"' % self.context.sprint.title)
def page_title(self): """See `LaunchpadView`.""" return smartquote('Translations by %s in "%s"') % ( self._person_name, self.context.title)
def page_title(self): return smartquote("Administer %s" % self.context.title)
def page_title(self): return smartquote( u'Change details for the "%s" bug tracker' % self.context.title)
def label(self): """Page heading.""" return smartquote("Copyright for " + self.context.title)
def label(self): return smartquote('Blueprint assignments for "%s"' % self.context.displayname)
def page_title(self): return smartquote( 'Link branch "%s" to a blueprint' % self.context.displayname)
def text(self): return smartquote('Custom language code "%s"' % self.context.language_code)
def label(self): return smartquote( 'Review discussion topics for "%s" sprint' % self.context.title)
def title(self): """See `IDistributionSourcePackage`.""" return smartquote('"%s" package in %s') % ( self.sourcepackagename.name, self.distribution.displayname)
def title(self): """See `ISourcePackage`.""" return smartquote('"%s" source package in %s') % ( self.sourcepackagename.name, self.distroseries.displayname)