예제 #1
0
    def readSettings(self):
        self.output = cStringIO.StringIO()
        profileDirectory = skeinforge_profile.getProfileDirectory()
        craftRepo = skeinforge_craft.CraftRepository()
        profileBaseName = settings.getProfileBaseName(craftRepo)
        allCraftNames = archive.getPluginFileNamesFromDirectoryPath(
            skeinforge_craft.getPluginsDirectoryPath())

        fullProfilePath = os.path.join(archive.getSettingsPath(), 'profiles')
        fullProfileDirectory = os.path.join(fullProfilePath, profileDirectory)

        for craftName in allCraftNames:
            pluginModule = archive.getModuleWithPath(
                os.path.join(skeinforge_craft.getPluginsDirectoryPath(),
                             craftName))

            repo = pluginModule.getNewRepository()
            self.outputSettings(craftName,
                                settings.getReadRepository(repo).preferences)

        return self.output.getvalue()
예제 #2
0
def getNewRepository():
    "Get the repository constructor."
    return skeinforge_craft.CraftRepository()
예제 #3
0
def getNewRepository():
    'Get new repository.'
    return skeinforge_craft.CraftRepository()