~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/browser/branchlisting.py

  • Committer: Tim Penhey
  • Date: 2009-11-09 08:14:42 UTC
  • mto: (9691.7.3)
  • mto: This revision was merged to the branch mainline in revision 9903.
  • Revision ID: tim.penhey@canonical.com-20091109081442-89ic9d3u4sgaj748
Make the tal formatter match the expectations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
from lp.registry.interfaces.product import IProduct
92
92
from lp.registry.interfaces.sourcepackage import ISourcePackageFactory
93
93
from lp.registry.model.sourcepackage import SourcePackage
94
 
 
95
 
 
96
 
def get_plural_text(count, singular, plural):
97
 
    """Return 'singular' if 'count' is 1, 'plural' otherwise."""
98
 
    if count == 1:
99
 
        return singular
100
 
    else:
101
 
        return plural
 
94
from lp.services.browser_helpers import get_plural_text
102
95
 
103
96
 
104
97
class CodeVHostBreadcrumb(Breadcrumb):