def testCheckParameters(self):
     xsDataInput = XSDataInputEpydoc()
     xsDataInput.setDocPath(XSDataFile())
     xsDataInput.setSources([XSDataFile()])
     edPluginExecEpydoc = self.createPlugin()
     edPluginExecEpydoc.setDataInput(xsDataInput)
     edPluginExecEpydoc.checkParameters()
 def testCheckParameters(self):
     xsDataInput = XSDataInputEpydoc()
     xsDataInput.setDocPath(XSDataFile())
     xsDataInput.setSources([XSDataFile()])
     edPluginExecEpydoc = self.createPlugin()
     edPluginExecEpydoc.setDataInput(xsDataInput)
     edPluginExecEpydoc.checkParameters()
Ejemplo n.º 3
0
            docPath = os.path.join(pathWebDoc, oneproject)
            os.makedirs(docPath, int("755", 8))
            listOfPythonFiles = findFile(os.path.join(pyStrEdnaHomePath, oneproject))
            listOfPythonFiles.sort()
            if len(listOfPythonFiles) > 0:
                epydocJob = EDJob("EDPluginExecEpydocv1_0")
                dictJobs[oneproject] = epydocJob
                xsd = XSDataInputEpydoc()
                xsd.setDocPath(XSDataFile(XSDataString(docPath)))
                xsd.setProjectName(XSDataString(oneproject))
                xsd.setDocType(XSDataString(docFormat))
                if bVerbose:
                    xsd.setVerbosity(XSDataInteger(1))
                else:
                    xsd.setVerbosity(XSDataInteger(-1))
                xsd.setSources([XSDataFile(XSDataString(oneFile)) for oneFile in listOfPythonFiles])
                epydocJob.setDataInput(xsd)
                epydocJob.execute()
            else:
                print ("Error: No python files for project %s" % oneproject)

    else:
        plugins = findPlugins(pyStrEdnaHomePath)
        pluginPathProcessed = []
        for oneplugin in plugins:
            pluginPath = plugins[oneplugin]
            if not pluginPath in pluginPathProcessed:
                pluginPathProcessed.append(pluginPath)
                docPath = os.path.join(pluginPath, "doc")
                if not os.path.isdir(docPath):
                    os.mkdir(docPath)
Ejemplo n.º 4
0
            listOfPythonFiles = findFile(
                os.path.join(pyStrEdnaHomePath, oneproject))
            listOfPythonFiles.sort()
            if len(listOfPythonFiles) > 0:
                epydocJob = EDJob("EDPluginExecEpydocv1_0")
                dictJobs[oneproject] = epydocJob
                xsd = XSDataInputEpydoc()
                xsd.setDocPath(XSDataFile(XSDataString(docPath)))
                xsd.setProjectName(XSDataString(oneproject))
                xsd.setDocType(XSDataString(docFormat))
                if bVerbose:
                    xsd.setVerbosity(XSDataInteger(1))
                else:
                    xsd.setVerbosity(XSDataInteger(-1))
                xsd.setSources([
                    XSDataFile(XSDataString(oneFile))
                    for oneFile in listOfPythonFiles
                ])
                epydocJob.setDataInput(xsd)
                epydocJob.execute()
            else:
                print("Error: No python files for project %s" % oneproject)

    else:
        plugins = findPlugins(pyStrEdnaHomePath)
        pluginPathProcessed = []
        for oneplugin in plugins:
            pluginPath = plugins[oneplugin]
            if not pluginPath in pluginPathProcessed:
                pluginPathProcessed.append(pluginPath)
                docPath = os.path.join(pluginPath, "doc")
                if not os.path.isdir(docPath):