~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/browser/vocabulary.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-29 21:41:34 UTC
  • mfrom: (13811.2.1 arbitrary-lint)
  • Revision ID: launchpad@pqm.canonical.com-20110829214134-zh1k7bm6mehrstgk
[r=henninge][no-qa] Lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009-2010 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
"""Views which export vocabularies as JSON for widgets."""
11
11
    'get_person_picker_entry_metadata',
12
12
    ]
13
13
 
14
 
import simplejson
15
14
from itertools import izip
16
15
 
17
16
from lazr.restful.interfaces import IWebServiceClientRequest
 
17
import simplejson
18
18
from zope.app.form.interfaces import MissingInputError
19
19
from zope.app.schema.vocabulary import IVocabularyFactory
20
20
from zope.component import (
32
32
from canonical.launchpad.webapp.batching import BatchNavigator
33
33
from canonical.launchpad.webapp.interfaces import NoCanonicalUrl
34
34
from canonical.launchpad.webapp.publisher import canonical_url
 
35
from canonical.launchpad.webapp.vocabulary import IHugeVocabulary
35
36
from lp.app.browser.tales import (
36
37
    DateTimeFormatterAPI,
37
38
    IRCNicknameFormatterAPI,
38
39
    ObjectImageDisplayAPI,
39
40
    )
40
 
from canonical.launchpad.webapp.vocabulary import IHugeVocabulary
41
41
from lp.app.errors import UnexpectedFormData
42
42
from lp.code.interfaces.branch import IBranch
43
43
from lp.registry.interfaces.distributionsourcepackage import (
355
355
                self.context,
356
356
                enhanced_picker_enabled=self.enhanced_picker_enabled,
357
357
                picker_expander_enabled=self.picker_expander_enabled,
358
 
                personpicker_affiliation_enabled=
359
 
                    self.personpicker_affiliation_enabled)
 
358
                personpicker_affiliation_enabled=(
 
359
                    self.personpicker_affiliation_enabled))
360
360
            for term_value, picker_entry in izip(term_values, picker_entries):
361
361
                picker_term_entries[term_value] = picker_entry
362
362