3079 |
3079 |
3080 @param normalized flag indicating a normalized filename is wanted |
3080 @param normalized flag indicating a normalized filename is wanted |
3081 (boolean) |
3081 (boolean) |
3082 @return list of the projects scripts (list of string) |
3082 @return list of the projects scripts (list of string) |
3083 """ |
3083 """ |
|
3084 return self.getProjectFiles("SOURCES", normalized=normalized) |
|
3085 |
|
3086 def getProjectFiles(self, fileType, normalized=False): |
|
3087 """ |
|
3088 Public method to get the file entries of the given type. |
|
3089 |
|
3090 @param fileType project file type (one of SOURCES, FORMS, RESOURCES, |
|
3091 INTERFACES, OTHERS, TRANSLATIONS) |
|
3092 @type str |
|
3093 @param normalized flag indicating normalized file names are wanted |
|
3094 @type boolean |
|
3095 @return list of file names |
|
3096 @rtype list of str |
|
3097 """ |
|
3098 if fileType not in ["SOURCES", "FORMS", "RESOURCES", "INTERFACES", |
|
3099 "OTHERS", "TRANSLATIONS"]: |
|
3100 raise ValueError("Given file type has incorrect value.") |
|
3101 |
3084 if normalized: |
3102 if normalized: |
3085 return [os.path.join(self.ppath, fn) for fn in |
3103 return [os.path.join(self.ppath, fn) for fn in |
3086 self.pdata["SOURCES"]] |
3104 self.pdata[fileType]] |
3087 else: |
3105 else: |
3088 return self.pdata["SOURCES"] |
3106 return self.pdata[fileType] |
3089 |
3107 |
3090 def getProjectType(self): |
3108 def getProjectType(self): |
3091 """ |
3109 """ |
3092 Public method to get the type of the project. |
3110 Public method to get the type of the project. |
3093 |
3111 |
3353 Public method to check, if the project uses the system eol setting. |
3371 Public method to check, if the project uses the system eol setting. |
3354 |
3372 |
3355 @return flag indicating the usage of system eol (boolean) |
3373 @return flag indicating the usage of system eol (boolean) |
3356 """ |
3374 """ |
3357 return self.pdata["EOL"] == 0 |
3375 return self.pdata["EOL"] == 0 |
|
3376 |
|
3377 def getProjectVersion(self): |
|
3378 """ |
|
3379 Public mehod to get the version number of the project. |
|
3380 |
|
3381 @return version number |
|
3382 @rtype str |
|
3383 """ |
|
3384 return self.pdate["VERSION"] |
|
3385 |
|
3386 def getProjectAuthor(self): |
|
3387 """ |
|
3388 Public method to get the author of the project. |
|
3389 |
|
3390 @return author name |
|
3391 @rtype str |
|
3392 """ |
|
3393 return self.pdata["AUTHOR"] |
|
3394 |
|
3395 def getProjectAuthorEmail(self): |
|
3396 """ |
|
3397 Public method to get the email address of the project author. |
|
3398 |
|
3399 @return project author email |
|
3400 @rtype str |
|
3401 """ |
|
3402 return self.pdata["EMAIL"] |
|
3403 |
|
3404 def getProjectDescription(self): |
|
3405 """ |
|
3406 Public method to get the description of the project. |
|
3407 |
|
3408 @return project description |
|
3409 @rtype str |
|
3410 """ |
|
3411 return self.pdata["DESCRIPTION"] |
3358 |
3412 |
3359 def isProjectFile(self, fn): |
3413 def isProjectFile(self, fn): |
3360 """ |
3414 """ |
3361 Public method used to check, if the passed in filename belongs to the |
3415 Public method used to check, if the passed in filename belongs to the |
3362 project. |
3416 project. |