def setProjectFileBaseName( self, projectFileBaseName ): """Set the project file base name for this builder \param projectFileBaseName 'project' in a path like /path/to/source/project.pro""" check_for_nonempty_string_or_none( projectFileBaseName, "Project file base name must be a valid string" ) self.__projectFileBaseName = projectFileBaseName
def getPathsFromRegistry( keys, pathsSuffix = None ): paths = [] check_for_list_of_strings( keys, "keys must be a list of strings" ) check_for_nonempty_string_or_none( pathsSuffix, "pathsSuffix must be a non-empty string or None" ) for key in keys: path = getPathFromRegistry( key ) if path: if pathsSuffix: path = os.path.normpath( os.path.join( path, pathsSuffix ) ) paths.append( path ) return paths
def setTag( self, tag ): check_for_nonempty_string_or_none( tag, 'The tag should be a string!' ) self.__tag = tag
def setBranch( self, branch ): check_for_nonempty_string_or_none( branch, 'The branch should be a string!' ) self.__branch = branch
def setProjectName( self, name ): check_for_nonempty_string_or_none( name, 'The project name should not be empty!' ) self.__projectName = name
def setStep( self, step ): check_for_nonempty_string_or_none( step, 'The step must be a non-empty string that is a step name, or None.' ) self.__step = step
def setFilename( self, filename ): check_for_nonempty_string_or_none( filename, 'The filename has to be a non-empty string, or None!' ) self.__filename = filename
def setObjectDescription( self, description ): '''The description is a more detailed message about the object. The description is used in reports and in describe output. If it is None, it will be ignored.''' check_for_nonempty_string_or_none( description, 'The object status needs to be a string or None!' ) self.__description = description
def setObjectStatus( self, status ): '''The status is a short string message about the status of the object. The status is used in reports and in describe output. If it is None, it will be ignored.''' check_for_nonempty_string_or_none( status, 'The object status needs to be a string or None!' ) self.__status = status
def _setBaseDir( self, folder ): check_for_nonempty_string_or_none( folder, 'The instructions base directory must be a folder name, or None!' ) self.__baseDir = folder