~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-09 22:06:33 UTC
  • mfrom: (13629.1.1 bug-798945)
  • Revision ID: launchpad@pqm.canonical.com-20110809220633-o4v7gr0yd5fy1e1h
[r=gmb][bug=798945] make page_title late binding so it calls the
        correct "label" property

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    'SourcePackageBranchesView',
31
31
    ]
32
32
 
33
 
from datetime import datetime
34
33
from operator import attrgetter
35
34
 
36
35
from lazr.delegates import delegates
38
37
    EnumeratedType,
39
38
    Item,
40
39
    )
41
 
import pytz
42
 
import simplejson
43
40
from storm.expr import (
44
41
    Asc,
45
42
    Desc,
557
554
            'displayname': self.context.displayname,
558
555
            'title': getattr(self.context, 'title', 'no-title')}
559
556
 
560
 
    # Provide a default page_title for distros and other things without
561
 
    # breadcrumbs..
562
 
    page_title = label
 
557
    @property
 
558
    def page_title(self):
 
559
        """Provide a default for distros and other things without breadcrumbs.
 
560
        """
 
561
        return self.label
563
562
 
564
563
    @property
565
564
    def initial_values(self):