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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 def page_title(self):
     """Return a relevant page title for this view."""
     return smartquote(
         'Change details for builder "%s"' % self.context.title)
Exemplo n.º 4
0
 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)
Exemplo n.º 7
0
 def label(self):
     """The form label."""
     return smartquote('Create a new release for %s' %
                       self.context.product.displayname)
Exemplo n.º 8
0
 def label(self):
     """<h1> for the change log page."""
     return smartquote("Change logs for " + self.context.title)
 def label(self):
     return smartquote('Current documentation for "%s"' %
                       self.context.displayname)
Exemplo n.º 10
0
 def page_title(self):
     return smartquote("Search %s's packages" % self.context.displayname)
 def text(self):
     return smartquote('"%s" package') % (
         self.context.sourcepackagename.name)
Exemplo n.º 12
0
 def text(self):
     return smartquote('Template "%s"' % self.context.name)
 def page_title(self):
     return smartquote(
         'Edit subscription to branch "%s"' % self.branch.displayname)
Exemplo n.º 14
0
 def label(self):
     return smartquote('Confirm attachment type of "%s"') % (
         self.context.title)
Exemplo n.º 15
0
 def label(self):
     return smartquote('Edit attachment "%s"') % self.context.title
Exemplo n.º 16
0
 def label(self):
     """The form label."""
     return smartquote('Delete %s' % self.context.title)
Exemplo n.º 17
0
 def page_title(self):
     return smartquote(
         u'The "%s" bug tracker in Launchpad' % self.context.title)
Exemplo n.º 18
0
 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)
Exemplo n.º 20
0
 def label(self):
     """The form label."""
     return smartquote('Add a download file to %s' % self.context.title)
 def label(self):
     return smartquote(self.context.title)
Exemplo n.º 22
0
 def label(self):
     """The form label."""
     return smartquote('Delete %s' % self.context.title)
Exemplo n.º 23
0
 def label(self):
     target_displayname = self.context.translation_target.displayname
     return smartquote('Custom language code "%s" for %s' %
                       (self.context.language_code, target_displayname))
Exemplo n.º 24
0
 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):
     return 'Publishing history of %s' % smartquote(self.context.title)
Exemplo n.º 26
0
 def label(self):
     return smartquote('Review discussion topics for "%s" sprint' %
                       self.context.title)
Exemplo n.º 27
0
 def label(self):
     return smartquote(
         'Build history for "%s"' % self.context.title)
Exemplo n.º 28
0
 def label(self):
     """The form label."""
     return smartquote('Edit %s release details' % self.context.title)
Exemplo n.º 29
0
 def label(self):
     return smartquote('Delete "%s" sprint' % self.context.displayname)
Exemplo n.º 30
0
 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)
Exemplo n.º 32
0
 def text(self):
     return smartquote(
         'Custom language code "%s"' % self.context.language_code)
Exemplo n.º 33
0
 def label(self):
     return smartquote(
         'Build history for "%s"' % self.context.title)
 def label(self):
     return smartquote(
         'Consider agenda item for "%s"' % self.context.sprint.title)
Exemplo n.º 35
0
 def page_title(self):
     """See `LaunchpadView`."""
     return smartquote('Translations by %s in "%s"') % (
         self._person_name, self.context.title)
Exemplo n.º 36
0
 def page_title(self):
     return smartquote("Administer %s" % self.context.title)
Exemplo n.º 37
0
 def page_title(self):
     return smartquote(
         u'Change details for the "%s" bug tracker' % self.context.title)
Exemplo n.º 38
0
 def page_title(self):
     return smartquote("Search %s's packages" % self.context.displayname)
 def page_title(self):
     return smartquote(self.context.title)
Exemplo n.º 40
0
 def label(self):
     return smartquote('Edit attachment "%s"') % self.context.title
Exemplo n.º 41
0
 def label(self):
     """Page heading."""
     return smartquote("Copyright for " + self.context.title)
Exemplo n.º 42
0
 def label(self):
     return smartquote('Confirm attachment type of "%s"') % (
         self.context.title)
 def label(self):
     return smartquote('Blueprint assignments for "%s"' %
                       self.context.displayname)
Exemplo n.º 44
0
 def text(self):
     return smartquote('Template "%s"' % self.context.name)
 def text(self):
     return smartquote('"%s" package') % (
         self.context.sourcepackagename.name)
 def page_title(self):
     return smartquote(
         'Link branch "%s" to a blueprint' % self.context.displayname)
Exemplo n.º 47
0
 def text(self):
     return smartquote('Custom language code "%s"' %
                       self.context.language_code)
Exemplo n.º 48
0
 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)
Exemplo n.º 50
0
 def title(self):
     """See `ISourcePackage`."""
     return smartquote('"%s" source package in %s') % (
         self.sourcepackagename.name, self.distroseries.displayname)
 def label(self):
     return smartquote(self.context.title)
 def title(self):
     """See `IDistributionSourcePackage`."""
     return smartquote('"%s" package in %s') % (
         self.sourcepackagename.name, self.distribution.displayname)