class File(Output): def __init__(self, file_location): self.__database_handler = DatabaseHandler(file_location) self.__database_handler.connect_database() def write(self, information): print "Information output to file:" print information self.__database_handler.insert(information)
def __init__(self, file_location): self.__database_handler = DatabaseHandler(file_location) self.__database_handler.connect_database()