~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to utilities/soyuz-sampledata-setup.py

  • Committer: William Grant
  • Date: 2012-01-01 03:10:25 UTC
  • mto: This revision was merged to the branch mainline in revision 14614.
  • Revision ID: william.grant@canonical.com-20120101031025-pcl0na3sbgfrztcw
utilities

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
import _pythonpath
24
24
 
 
25
import os
25
26
import re
26
 
import os
27
27
import subprocess
28
28
import sys
29
29
from textwrap import dedent
 
30
 
 
31
from storm.store import Store
30
32
import transaction
31
 
 
32
33
from zope.component import getUtility
33
34
from zope.event import notify
34
35
from zope.lifecycleevent import ObjectCreatedEvent
35
36
from zope.security.proxy import removeSecurityProxy
36
37
 
37
 
from storm.store import Store
38
 
 
39
38
from lp.app.interfaces.launchpad import ILaunchpadCelebrities
40
 
from lp.services.webapp.interfaces import (
41
 
    IStoreSelector, MAIN_STORE, MASTER_FLAVOR, SLAVE_FLAVOR)
42
 
 
43
39
from lp.registry.interfaces.codeofconduct import ISignedCodeOfConductSet
44
40
from lp.registry.interfaces.person import IPersonSet
45
41
from lp.registry.interfaces.series import SeriesStatus
46
42
from lp.registry.model.codeofconduct import SignedCodeOfConduct
47
43
from lp.services.scripts.base import LaunchpadScript
 
44
from lp.services.webapp.interfaces import (
 
45
    IStoreSelector,
 
46
    MAIN_STORE,
 
47
    MASTER_FLAVOR,
 
48
    SLAVE_FLAVOR,
 
49
    )
48
50
from lp.soyuz.enums import SourcePackageFormat
49
51
from lp.soyuz.interfaces.component import IComponentSet
50
52
from lp.soyuz.interfaces.processor import IProcessorFamilySet
52
54
from lp.soyuz.interfaces.sourcepackageformat import (
53
55
    ISourcePackageFormatSelectionSet,
54
56
    )
 
57
from lp.soyuz.model.component import ComponentSelection
55
58
from lp.soyuz.model.section import SectionSelection
56
 
from lp.soyuz.model.component import ComponentSelection
57
59
from lp.soyuz.scripts.initialize_distroseries import InitializeDistroSeries
58
60
from lp.testing.factory import LaunchpadObjectFactory
59
61