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)
示例#2
0
 def __init__(self, opalRequest):
     AbstractCommand.__init__(self)
     self.opalRequest = opalRequest