def get_urls(self, build_id): """ <Purpose> Allows XML-RPC clients request the URLs for builds other than their own. <Arguments> build_id: The build ID of a previously generated custom installer. <Exceptions> ValidationError if improper build_id is passed. <Side Effects> None. <Returns> A dictionary which contains URLs pointing to the installers, and a dictionary of user cryptographic keys. """ validations.validate_build_id(build_id) manager = BuildManager(build_id=build_id) if not os.path.isdir(manager.get_build_directory()): raise validations.ValidationError('Given build ID does not exist.') return manager.get_urls()
def set_build_id(self, build_id): validations.validate_build_id(build_id) self.build_id = build_id