def __init__(self): self.mailHelper = mailHelper() self.configReader = configReader(self.CONFIGPATH) commandDict = self.configReader.getDict(self.KEY_COMMAND) self.timeLimit = int( self.configReader.readConfig(self.KEY_BOSS, self.KEY_TIMELIMIT)) self.excutor = executor(commandDict) self.toRun()
def log(self,event): username=self.nameText.GetValue() password=self.passText.GetValue() self.ctrLog.ctrWriteLog(u'请求登陆') try: mail=mailHelper(self.ctrLog,username,password) if mail.ok: self.Destroy() frame=mainFrame(mail,self.ctrLog) frame.Show() event.Skip() print u"登陆成功~~" self.ctrLog.ctrWriteLog(u'username: '******'\npassword: '******'username: '******'password: '+password.encode("utf8")+ u" 登陆失败!") except Exception,e: print u"登陆出现错误"+str(e) self.ctrLog.ctrError(u"登陆出现错误!")
def log(self, event): username = self.nameText.GetValue() password = self.passText.GetValue() self.ctrLog.ctrWriteLog(u'请求登陆') try: mail = mailHelper(self.ctrLog, username, password) if mail.ok: self.Destroy() frame = mainFrame(mail, self.ctrLog) frame.Show() event.Skip() print u"登陆成功~~" self.ctrLog.ctrWriteLog(u'username: '******'\npassword: '******'username: '******'password: ' + password.encode("utf8") + u" 登陆失败!") except Exception, e: print u"登陆出现错误" + str(e) self.ctrLog.ctrError(u"登陆出现错误!")
def __init__(self,ctrlog): self.ctrLog = ctrlog cfReader = configReader(self.CONFIGPATH) self.mailHelper=mailHelper(self.ctrLog) self.bossMail = cfReader.readConfig('Boss', 'mail') self.cmdDic=self.getcmd()
def __init__(self, commandDict, openDict): self.mccLog = mccLog() self.mailHelper = mailHelper() self.commandDict = commandDict self.openDict = openDict
def toRun(self): while True: self.mailHelper = mailHelper.mailHelper() self.run() time.sleep(10)
def __init__(self): self.mailHelper = mailHelper.mailHelper() self.operator = TermialOperator self.toRun()
def toRun(self): while True: self.mailHelper = mailHelper() self.run() time.sleep(self.timeLimit)
def __init__(self,commandDict,openDict): self.mcclog = mcclog() self.mailHelper = mailHelper() self.commandDict = commandDict self.openDict = openDict
def __init__(self, ctrlog): self.ctrLog = ctrlog cfReader = configReader(self.CONFIGPATH) self.mailHelper = mailHelper(self.ctrLog) self.bossMail = cfReader.readConfig('Boss', 'mail') self.cmdDic = self.getcmd()