--- a/Project/Project.py Fri Nov 25 19:06:40 2016 +0100 +++ b/Project/Project.py Sat Nov 26 15:35:12 2016 +0100 @@ -3081,11 +3081,29 @@ (boolean) @return list of the projects scripts (list of string) """ + return self.getProjectFiles("SOURCES", normalized=normalized) + + def getProjectFiles(self, fileType, normalized=False): + """ + Public method to get the file entries of the given type. + + @param fileType project file type (one of SOURCES, FORMS, RESOURCES, + INTERFACES, OTHERS, TRANSLATIONS) + @type str + @param normalized flag indicating normalized file names are wanted + @type boolean + @return list of file names + @rtype list of str + """ + if fileType not in ["SOURCES", "FORMS", "RESOURCES", "INTERFACES", + "OTHERS", "TRANSLATIONS"]: + raise ValueError("Given file type has incorrect value.") + if normalized: return [os.path.join(self.ppath, fn) for fn in - self.pdata["SOURCES"]] + self.pdata[fileType]] else: - return self.pdata["SOURCES"] + return self.pdata[fileType] def getProjectType(self): """ @@ -3355,6 +3373,42 @@ @return flag indicating the usage of system eol (boolean) """ return self.pdata["EOL"] == 0 + + def getProjectVersion(self): + """ + Public mehod to get the version number of the project. + + @return version number + @rtype str + """ + return self.pdate["VERSION"] + + def getProjectAuthor(self): + """ + Public method to get the author of the project. + + @return author name + @rtype str + """ + return self.pdata["AUTHOR"] + + def getProjectAuthorEmail(self): + """ + Public method to get the email address of the project author. + + @return project author email + @rtype str + """ + return self.pdata["EMAIL"] + + def getProjectDescription(self): + """ + Public method to get the description of the project. + + @return project description + @rtype str + """ + return self.pdata["DESCRIPTION"] def isProjectFile(self, fn): """