コード例 #1
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)
コード例 #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)
コード例 #3
0
ファイル: builder.py プロジェクト: pombreda/UnnaturalCodeFork
 def page_title(self):
     """Return a relevant page title for this view."""
     return smartquote(
         'Change details for builder "%s"' % self.context.title)
コード例 #4
0
 def label(self):
     """The form label."""
     return smartquote('Add a download file to %s' % self.context.title)
コード例 #5
0
 def label(self):
     return smartquote('Current documentation for "%s"' %
                       self.context.displayname)
コード例 #6
0
 def page_title(self):
     return smartquote(self.context.title)
コード例 #7
0
 def label(self):
     """The form label."""
     return smartquote('Create a new release for %s' %
                       self.context.product.displayname)
コード例 #8
0
 def label(self):
     """<h1> for the change log page."""
     return smartquote("Change logs for " + self.context.title)
コード例 #9
0
 def label(self):
     return smartquote('Current documentation for "%s"' %
                       self.context.displayname)
コード例 #10
0
 def page_title(self):
     return smartquote("Search %s's packages" % self.context.displayname)
コード例 #11
0
 def text(self):
     return smartquote('"%s" package') % (
         self.context.sourcepackagename.name)
コード例 #12
0
 def text(self):
     return smartquote('Template "%s"' % self.context.name)
コード例 #13
0
 def page_title(self):
     return smartquote(
         'Edit subscription to branch "%s"' % self.branch.displayname)
コード例 #14
0
 def label(self):
     return smartquote('Confirm attachment type of "%s"') % (
         self.context.title)
コード例 #15
0
 def label(self):
     return smartquote('Edit attachment "%s"') % self.context.title
コード例 #16
0
 def label(self):
     """The form label."""
     return smartquote('Delete %s' % self.context.title)
コード例 #17
0
 def page_title(self):
     return smartquote(
         u'The "%s" bug tracker in Launchpad' % self.context.title)
コード例 #18
0
 def label(self):
     """The form label."""
     return smartquote('Edit %s release details' % self.context.title)
コード例 #19
0
 def label(self):
     return 'Publishing history of %s' % smartquote(self.context.title)
コード例 #20
0
 def label(self):
     """The form label."""
     return smartquote('Add a download file to %s' % self.context.title)
コード例 #21
0
 def label(self):
     return smartquote(self.context.title)
コード例 #22
0
 def label(self):
     """The form label."""
     return smartquote('Delete %s' % self.context.title)
コード例 #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))
コード例 #24
0
ファイル: builder.py プロジェクト: pombredanne/launchpad-3
 def page_title(self):
     """Return a relevant page title for this view."""
     return smartquote(
         'Change details for builder "%s"' % self.context.title)
コード例 #25
0
 def label(self):
     return 'Publishing history of %s' % smartquote(self.context.title)
コード例 #26
0
ファイル: sprint.py プロジェクト: pombredanne/launchpad-3
 def label(self):
     return smartquote('Review discussion topics for "%s" sprint' %
                       self.context.title)
コード例 #27
0
ファイル: builder.py プロジェクト: pombredanne/launchpad-3
 def label(self):
     return smartquote(
         'Build history for "%s"' % self.context.title)
コード例 #28
0
 def label(self):
     """The form label."""
     return smartquote('Edit %s release details' % self.context.title)
コード例 #29
0
ファイル: sprint.py プロジェクト: pombredanne/launchpad-3
 def label(self):
     return smartquote('Delete "%s" sprint' % self.context.displayname)
コード例 #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))
コード例 #31
0
 def label(self):
     return smartquote(
         'Blueprint assignments for "%s"' % self.context.displayname)
コード例 #32
0
 def text(self):
     return smartquote(
         'Custom language code "%s"' % self.context.language_code)
コード例 #33
0
ファイル: builder.py プロジェクト: pombreda/UnnaturalCodeFork
 def label(self):
     return smartquote(
         'Build history for "%s"' % self.context.title)
コード例 #34
0
 def label(self):
     return smartquote(
         'Consider agenda item for "%s"' % self.context.sprint.title)
コード例 #35
0
ファイル: pofile.py プロジェクト: pombreda/UnnaturalCodeFork
 def page_title(self):
     """See `LaunchpadView`."""
     return smartquote('Translations by %s in "%s"') % (
         self._person_name, self.context.title)
コード例 #36
0
 def page_title(self):
     return smartquote("Administer %s" % self.context.title)
コード例 #37
0
 def page_title(self):
     return smartquote(
         u'Change details for the "%s" bug tracker' % self.context.title)
コード例 #38
0
 def page_title(self):
     return smartquote("Search %s's packages" % self.context.displayname)
コード例 #39
0
 def page_title(self):
     return smartquote(self.context.title)
コード例 #40
0
 def label(self):
     return smartquote('Edit attachment "%s"') % self.context.title
コード例 #41
0
 def label(self):
     """Page heading."""
     return smartquote("Copyright for " + self.context.title)
コード例 #42
0
 def label(self):
     return smartquote('Confirm attachment type of "%s"') % (
         self.context.title)
コード例 #43
0
 def label(self):
     return smartquote('Blueprint assignments for "%s"' %
                       self.context.displayname)
コード例 #44
0
 def text(self):
     return smartquote('Template "%s"' % self.context.name)
コード例 #45
0
 def text(self):
     return smartquote('"%s" package') % (
         self.context.sourcepackagename.name)
コード例 #46
0
 def page_title(self):
     return smartquote(
         'Link branch "%s" to a blueprint' % self.context.displayname)
コード例 #47
0
 def text(self):
     return smartquote('Custom language code "%s"' %
                       self.context.language_code)
コード例 #48
0
ファイル: sprint.py プロジェクト: pombreda/UnnaturalCodeFork
 def label(self):
     return smartquote(
         'Review discussion topics for "%s" sprint' % self.context.title)
コード例 #49
0
 def title(self):
     """See `IDistributionSourcePackage`."""
     return smartquote('"%s" package in %s') % (
         self.sourcepackagename.name, self.distribution.displayname)
コード例 #50
0
 def title(self):
     """See `ISourcePackage`."""
     return smartquote('"%s" source package in %s') % (
         self.sourcepackagename.name, self.distroseries.displayname)
コード例 #51
0
 def label(self):
     return smartquote(self.context.title)
コード例 #52
0
 def title(self):
     """See `IDistributionSourcePackage`."""
     return smartquote('"%s" package in %s') % (
         self.sourcepackagename.name, self.distribution.displayname)