def __init__(self, user_password_path): self.__user_password = {} self.__logger = newLogger(type(self).__name__) user_password_file = open(user_password_path, "r") for user_password_line in user_password_file: # split on comma user_password_split = user_password_line.find(",") # Ignore lines in wrong format. if 0 < user_password_split: user = user_password_line[0:user_password_split].strip() password = user_password_line[user_password_split + 1:].strip() self.__user_password[user] = password else: self.__logger.error("Wrong format in file: " + user_password_line)
def __init__(self, label, next_group_text, hicp): self.logger = newLogger(type(self).__name__) self.__label = label self.__next_group_text = next_group_text self.__hicp = hicp
def __init__(self): self.__logger = newLogger(type(self).__name__)
def __init__(self, label, next_text_id): self.logger = newLogger(type(self).__name__) self.__label = label self.__next_text_id = next_text_id
def __init__(self, app_name=None): self.logger = newLogger(type(self).__name__) self.__app_name = app_name