def bigMixServerDeploy(self): if self.big_mix_server: big_mix_list = "" big_mix_list_exclude = "" try: big_mix_list = gameOption("big_mix_list") # 如果混服列表为空,则到后台数据库查询混服列表 if not big_mix_list: big_mix_list_exclude = gameOption("big_mix_list_exclude") big_mix_list = serverlist.getMixServer(self.backstage_db,self.backstage_tag,self.partnersType,self.backstage,big_mix_list_exclude) if not big_mix_list or big_mix_list.strip() == "": self.html.add("大混服部署","混服列表为空",color="red") self.htmlStatus = False else: import deployMix try: mixserverlist = [ "%s_%s"%(i.strip(),self.quhao) for i in big_mix_list.split(",") ] #mixserverlist.remove(self.servername.strip()) mixserverlistStr = ",".join(mixserverlist) logging.info("大混服列表为:%s"%mixserverlistStr) mixserver = deployMix.deploy(self.game,self.language,mixserverlistStr,self.servername,"yes",None,None,None,False) mixserver.run() self.html.add("大混服部署","成功,请注意混服邮件!",color="green") except Exception,e2: self.html.add("大混服部署",str(e2),color="red") self.htmlStatus = False except Exception,e1: self.html.add("大混服部署","获取大混服参数错误",color="red") self.htmlStatus = False
def bigMixServerDeploy(self): if self.big_mix_server: big_mix_list = "" big_mix_list_exclude = "" try: big_mix_list = gameOption("big_mix_list") # 如果混服列表为空,则到后台数据库查询混服列表 if not big_mix_list: big_mix_list_exclude = gameOption("big_mix_list_exclude") big_mix_list = serverlist.getMixServer(self.backstage_db,self.backstage_tag,self.partnersType,self.backstage,big_mix_list_exclude) if not big_mix_list or big_mix_list.strip() == "": self.html.add("大混服部署","混服列表为空",color="red") self.htmlStatus = False else: import deployMix try: mixserver = deployMix.deploy(self.game,self.language,big_mix_list,self.servername,"yes",None,None,None,False) mixserver.run() self.html.add("大混服部署","成功,请注意混服邮件!",color="green") except Exception,e2: self.html.add("大混服部署",str(e2),color="red") self.htmlStatus = False except Exception,e1: self.html.add("大混服部署","获取大混服参数错误",color="red") self.htmlStatus = False
def bigMixServerDeploy(self): if self.big_mix_server: big_mix_list = "" big_mix_list_exclude = "" try: big_mix_list = gameOption("big_mix_list") # 如果混服列表为空,则到后台数据库查询混服列表 if not big_mix_list: big_mix_list_exclude = gameOption("big_mix_list_exclude") big_mix_list = serverlist.getMixServer( self.backstage_db, self.backstage_tag, self.partnersType, self.backstage, big_mix_list_exclude) if not big_mix_list or big_mix_list.strip() == "": self.html.add("大混服部署", "混服列表为空", color="red") self.htmlStatus = False else: import deployMix try: mixserver = deployMix.deploy(self.game, self.language, big_mix_list, self.servername, "yes", None, None, None, False) mixserver.run() self.html.add("大混服部署", "成功,请注意混服邮件!", color="green") except Exception, e2: self.html.add("大混服部署", str(e2), color="red") self.htmlStatus = False except Exception, e1: self.html.add("大混服部署", "获取大混服参数错误", color="red") self.htmlStatus = False
def bigMixServerDeploy(self): if self.big_mix_server: big_mix_list = "" big_mix_list_exclude = "" try: big_mix_list = gameOption("big_mix_list") # 如果混服列表为空,则到后台数据库查询混服列表 if not big_mix_list: big_mix_list_exclude = gameOption("big_mix_list_exclude") big_mix_list = serverlist.getMixServer( self.backstage_db, self.backstage_tag, self.partnersType, self.backstage, big_mix_list_exclude) if not big_mix_list or big_mix_list.strip() == "": self.html.add("大混服部署", "混服列表为空", color="red") self.htmlStatus = False else: import deployMix try: mixserverlist = [ "%s_%s" % (i.strip(), self.quhao) for i in big_mix_list.split(",") ] #mixserverlist.remove(self.servername.strip()) mixserverlistStr = ",".join(mixserverlist) logging.info("大混服列表为:%s" % mixserverlistStr) mixserver = deployMix.deploy(self.game, self.language, mixserverlistStr, self.servername, "yes", None, None, None, False) mixserver.run() self.html.add("大混服部署", "成功,请注意混服邮件!", color="green") except Exception, e2: self.html.add("大混服部署", str(e2), color="red") self.htmlStatus = False except Exception, e1: self.html.add("大混服部署", "获取大混服参数错误", color="red") self.htmlStatus = False