def createCodex(dictionary): #Now create the projects. projectList = [] projectNames = findProjectDirectories(dictionary['directoryPath']) for projectName in projectNames: # check project name in current path already if (string.count(dictionary['directoryPath'], str("/"+projectName)) > 0) : path = os.path.realpath(dictionary['directoryPath']) + "/" # check if adding projectName else: path = os.path.realpath(dictionary['directoryPath']) + "/"+ str(projectName) + "/" print "Creating data for " + projectName project =Project(projectName, path, dictionary['metaFlag']) project.assignMetas() projectList.append(project) projectList.sort() #now create the HTML documents print "Now creating HTML documents in directory: " + os.path.realpath(dictionary['codexSubDirPath']) htmlDocuments = createHTMLDocuments("Component Codex", dictionary['documentBlurb'], projectList, dictionary['codexSubDirPath'], dictionary['stylesheetList'], dictionary['extWeb'], dictionary['email'], dictionary['script'], dictionary['pictureDirectory'], dictionary['indexFileName'], "Google", "") htmlDocuments.createHTMLPages() # These two aren't necc. for this file, as the images are already in the right place. htmlDocuments.copyPictures(dictionary['imagePath']) htmlDocuments.copyStylesheets()
def createCodex(dictionary): #Now create the projects. projectList = [] projectNames = findProjectDirectories(dictionary['directoryPath']) for projectName in projectNames: # check project name in current path already if (string.count(dictionary['directoryPath'], str("/" + projectName)) > 0): path = os.path.realpath(dictionary['directoryPath']) + "/" # check if adding projectName else: path = os.path.realpath( dictionary['directoryPath']) + "/" + str(projectName) + "/" print "Creating data for " + projectName project = Project(projectName, path, dictionary['metaFlag']) project.assignMetas() projectList.append(project) projectList.sort() #now create the HTML documents print "Now creating HTML documents in directory: " + os.path.realpath( dictionary['codexSubDirPath']) htmlDocuments = createHTMLDocuments( "Component Codex", dictionary['documentBlurb'], projectList, dictionary['codexSubDirPath'], dictionary['stylesheetList'], dictionary['extWeb'], dictionary['email'], dictionary['script'], dictionary['pictureDirectory'], dictionary['indexFileName'], "Google", "") htmlDocuments.createHTMLPages() # These two aren't necc. for this file, as the images are already in the right place. htmlDocuments.copyPictures(dictionary['imagePath']) htmlDocuments.copyStylesheets()
help="Path name to use on search bar if different from outputPath. Useful for when the output will be copied into a different directory later, or put online. No Default.", default="") (options, args) = parser.parse_args() #Now create the projects. projectList = [] projectNames =StripTextToList(options.Projects, 1) for projectName in projectNames: # check project name in current path already if (string.count(str(os.path.realpath(options.path)), str("/"+projectName)) > 0) : path = os.path.realpath(options.path) + "/" # check if adding projectName else: path = os.path.realpath(options.path) + "/"+ str(projectName) + "/" print "Creating data for " + projectName project =Project(projectName, path, options.metaFlag) project.assignMetas() projectList.append(project) # sort projects alphabetically projectList.sort() #now create the HTML documents print "Now creating HTML documents in directory: " + os.path.realpath(options.documentPath) #turn Ext.webs into useful list extWeb = StripTextToList(options.externalWebpages, 2) stylesheetList = StripTextToList(options.stylesheetList, 1) if not(options.scripts == ""): scripts = StripTextToList(options.scripts, 1) else:
(options, args) = parser.parse_args() #Now create the projects. projectList = [] projectNames = StripTextToList(options.Projects, 1) for projectName in projectNames: # check project name in current path already if (string.count(str(os.path.realpath(options.path)), str("/" + projectName)) > 0): path = os.path.realpath(options.path) + "/" # check if adding projectName else: path = os.path.realpath( options.path) + "/" + str(projectName) + "/" print "Creating data for " + projectName project = Project(projectName, path, options.metaFlag) project.assignMetas() projectList.append(project) # sort projects alphabetically projectList.sort() #now create the HTML documents print "Now creating HTML documents in directory: " + os.path.realpath( options.documentPath) #turn Ext.webs into useful list extWeb = StripTextToList(options.externalWebpages, 2) stylesheetList = StripTextToList(options.stylesheetList, 1) if not (options.scripts == ""): scripts = StripTextToList(options.scripts, 1) else: