~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/vocabularies.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-17 02:55:39 UTC
  • mfrom: (13970.5.2 target-pickers-go)
  • Revision ID: launchpad@pqm.canonical.com-20110917025539-5bumljanv43bn801
[r=sinzui][bug=820005, 851437,
        851440] Updates the target pickers to an enhanced version similar to
        person pickers, behind a feature flag.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2054
2054
                    obj.__class__.__name__, obj.id)
2055
2055
            obj = obj.pillar
2056
2056
 
2057
 
        title = '%s (%s)' % (obj.title, obj.pillar_category)
 
2057
        enhanced = bool(getFeatureFlag(
 
2058
            'disclosure.target_picker_enhancements.enabled'))
 
2059
        if enhanced:
 
2060
            title = '%s' % obj.title
 
2061
        else:
 
2062
            title = '%s (%s)' % (obj.title, obj.pillar_category)
2058
2063
        return SimpleTerm(obj, obj.name, title)
2059
2064
 
2060
2065
    def getTermByToken(self, token):