class Importer: def __init__(self, username, password, url): api = API(username, password, url) self.sites = SiteImporter(api) self.slices = SliceImporter(api) self.users = UserImporter(api) self.slivers = SliverImporter(api) def run(self): self.sites.run() self.users.run() self.slices.run(remote_sites=self.sites.remote_sites, local_sites=self.sites.local_sites) self.slivers.run()
def __init__(self, username, password, url): api = API(username, password, url) self.sites = SiteImporter(api) self.slices = SliceImporter(api) self.users = UserImporter(api) self.slivers = SliverImporter(api)