def __init__(self, host, user, password, database=None): AbstractCommand.__init__(self) self.host = host self.user = user self.password = password self.database = database self.db = MySQLdb.connect(self.host, self.user, self.password)
def __init__(self, opalRequest): AbstractCommand.__init__(self) self.opalRequest = opalRequest