"""Initialize the database attribute of the class.
Use superclass method for initialisation of constructor.
+ Check also for the optional arguments; if they are not, use defaults.
"""
super(MySQLDatabaseAccess, self).__init__(database)
+ if 'host' not in self.database:
+ self.database['host'] = 'localhost'
+ if 'port' not in self.database:
+ self.database['port'] = 3306
def connect(self):
"""Connect to MySQL database."""