~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/translations/model/translationtemplatesbuild.py

Fix imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2010-2011 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2010 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
"""`TranslationTemplatesBuild` class."""
18
18
    implements,
19
19
    )
20
20
 
 
21
from canonical.launchpad.components.decoratedresultset import (
 
22
    DecoratedResultSet,
 
23
    )
 
24
from canonical.launchpad.interfaces.lpstorm import IStore
21
25
from lp.buildmaster.model.buildfarmjob import BuildFarmJobDerived
22
26
from lp.code.model.branch import Branch
23
27
from lp.code.model.branchcollection import GenericBranchCollection
27
31
    )
28
32
from lp.registry.model.product import Product
29
33
from lp.services.database.bulk import load_related
30
 
from lp.services.database.decoratedresultset import DecoratedResultSet
31
 
from lp.services.database.lpstorm import IStore
32
34
from lp.translations.interfaces.translationtemplatesbuild import (
33
35
    ITranslationTemplatesBuild,
34
36
    ITranslationTemplatesBuildSource,
127
129
    @classmethod
128
130
    def preloadBuildsData(cls, builds):
129
131
        # Circular imports.
130
 
        from canonical.launchpad.database.librarian import LibraryFileAlias
 
132
        from lp.services.librarian.model import LibraryFileAlias
131
133
        # Load the related branches, products.
132
134
        branches = load_related(
133
135
            Branch, builds, ['branch_id'])