Beispiel #1
0
 def createClassList(self, filesDir, docsDir):
     """Create an HTML class hierarchy listing of the source files."""
     from DocSupport.ClassList import ClassList
     name = filesDir.replace('/', '.')
     self.printMsg('Creating class list of %s...' % name)
     classlist = ClassList(name)
     filesDir, subDir = (filesDir + '/').split('/', 1)
     saveDir = os.getcwd()
     os.chdir(filesDir)
     try:
         classlist.readFiles(subDir + '*.py')
         targetName = docsDir + '/ClassList.html'
         self.printMsg('Creating %s...' % targetName)
         classlist.printForWeb(False, '../' + targetName)
         targetName = docsDir + '/ClassHierarchy.html'
         self.printMsg('Creating %s...' % targetName)
         classlist.printForWeb(True, '../' + targetName)
     finally:
         os.chdir(saveDir)
Beispiel #2
0
	def createClassList(self, filesDir, docsDir):
		"""Create a HTML class hierarchy listing of the source files."""
		from DocSupport.ClassList import ClassList
		name = os.path.basename(filesDir)
		self.printMsg('Creating class list of %s...' % name)
		classlist = ClassList(name)
		saveDir = os.getcwd()
		os.chdir(filesDir)
		try:
			classlist.readFiles('*.py')
			targetName = '../' + docsDir + '/ClassList.html'
			self.printMsg('Creating %s...' % targetName)
			classlist.printForWeb(0, targetName)
			targetName = '../' + docsDir + '/ClassHierarchy.html'
			self.printMsg('Creating %s...' % targetName)
			classlist.printForWeb(1, targetName)
		finally:
			os.chdir(saveDir)
Beispiel #3
0
 def createClassList(self, filesDir, docsDir):
     """Create an HTML class hierarchy listing of the source files."""
     from DocSupport.ClassList import ClassList
     name = filesDir.replace('/', '.')
     self.printMsg('Creating class list of %s...' % name)
     classlist = ClassList(name)
     filesDir, subDir = (filesDir + '/').split('/', 1)
     saveDir = os.getcwd()
     os.chdir(filesDir)
     try:
         classlist.readFiles(subDir + '*.py')
         targetName = docsDir + '/ClassList.html'
         self.printMsg('Creating %s...' % targetName)
         classlist.printForWeb(False, '../' + targetName)
         targetName = docsDir + '/ClassHierarchy.html'
         self.printMsg('Creating %s...' % targetName)
         classlist.printForWeb(True, '../' + targetName)
     finally:
         os.chdir(saveDir)