~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/browser/person.py

  • Committer: Curtis Hovey
  • Date: 2011-12-23 23:44:59 UTC
  • mto: This revision was merged to the branch mainline in revision 14599.
  • Revision ID: curtis.hovey@canonical.com-20111223234459-udhsihrcbdfi7hiw
Moved helpers to lp.services.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
 
129
129
from canonical.config import config
130
130
from canonical.database.sqlbase import flush_database_updates
131
 
from canonical.launchpad import (
132
 
    _,
133
 
    helpers,
134
 
    )
 
131
from canonical.launchpad import _
135
132
from lp.services.feeds.browser import FeedsMixin
136
133
from lp.services.verification.interfaces.authtoken import LoginTokenType
137
134
from lp.services.mail.interfaces import (
253
250
    milestone_sort_key,
254
251
    )
255
252
from lp.services.fields import LocationField
 
253
from lp.services.helpers import shortlist
256
254
from lp.services.geoip.interfaces import IRequestPreferredLanguages
257
255
from lp.services.gpg.interfaces import (
258
256
    GPGKeyNotFoundError,
1592
1590
        vocabulary_registry = getVocabularyRegistry()
1593
1591
        vocabulary = vocabulary_registry.get(current_distro, 'Milestone')
1594
1592
 
1595
 
        return helpers.shortlist([
 
1593
        return shortlist([
1596
1594
            dict(title=milestone.title, value=milestone.token, checked=False)
1597
1595
            for milestone in vocabulary],
1598
1596
            longest_expected=10)