~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Steve Kowalik
  • Date: 2011-07-01 14:42:52 UTC
  • mto: This revision was merged to the branch mainline in revision 13357.
  • Revision ID: stevenk@ubuntu.com-20110701144252-sg32ra8u6mjppv55
Rip out the now argument from BranchListing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
191
191
    """
192
192
    delegates(IBranch, 'context')
193
193
 
194
 
    def __init__(self, branch, last_commit, now, show_bug_badge,
 
194
    def __init__(self, branch, last_commit, show_bug_badge,
195
195
                 show_blueprint_badge, show_mp_badge,
196
196
                 associated_product_series, suite_source_packages):
197
197
        BranchBadges.__init__(self, branch)
199
199
        self.show_bug_badge = show_bug_badge
200
200
        self.show_blueprint_badge = show_blueprint_badge
201
201
        self.show_merge_proposals = show_mp_badge
202
 
        self._now = now
203
202
        self.associated_product_series = associated_product_series
204
203
        self.suite_source_packages = suite_source_packages
205
204
 
343
342
    #   visible_branches_for_view
344
343
    def __init__(self, user):
345
344
        self._distro_series_map = {}
346
 
        self._now = datetime.now(pytz.UTC)
347
345
        self.view_user = user
348
346
 
349
347
    def getBranchCollection(self):
484
482
        associated_product_series = self.getProductSeries(branch)
485
483
        suite_source_packages = self.getSuiteSourcePackages(branch)
486
484
        return BranchListingItem(
487
 
            branch, last_commit, self._now, show_bug_badge,
488
 
            show_blueprint_badge, show_mp_badge,
489
 
            associated_product_series, suite_source_packages)
 
485
            branch, last_commit, show_bug_badge, show_blueprint_badge,
 
486
            show_mp_badge, associated_product_series, suite_source_packages)
490
487
 
491
488
    def decoratedBranches(self, branches):
492
489
        """Return the decorated branches for the branches passed in."""