Exemple #1
0
 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()
Exemple #2
0
 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"登陆出现错误!")
Exemple #3
0
 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"登陆出现错误!")
Exemple #4
0
 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()
Exemple #5
0
 def __init__(self, commandDict, openDict):
     self.mccLog = mccLog()
     self.mailHelper = mailHelper()
     self.commandDict = commandDict
     self.openDict = openDict
Exemple #6
0
	def toRun(self):
		while True:
			self.mailHelper = mailHelper.mailHelper()
			self.run()
			time.sleep(10)
Exemple #7
0
	def __init__(self):
		self.mailHelper = mailHelper.mailHelper()
		self.operator = TermialOperator
		self.toRun()
Exemple #8
0
 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
Exemple #10
0
 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()