def requestData(self, requestType, flag, startTime, endTime): if requestType == 0: # 请求当天数据 socketFun.requestCurrentDay(self, flag, startTime.time()) elif requestType == 1: # 请求某一天数据 socketFun.requestOneDay(self, startTime.date(), startTime.time(), endTime.time()) elif requestType == 2: # 请求某一段时间数据 socketFun.requestSomeTimes(self, startTime.date(), endTime.date()) else: print "Request illegal Param"
def requestData(self, requestType, flag, startTime, endTime): if requestType == 0: #请求当天数据 socketFun.requestCurrentDay(self, flag, startTime.time()) elif requestType == 1: #请求某一天数据 socketFun.requestOneDay(self, startTime.date(), startTime.time(), endTime.time()) elif requestType == 2: #请求某一段时间数据 socketFun.requestSomeTimes(self, startTime.date(), endTime.date()) else: print "Request illegal Param"
def requestData(self, requestType, flag, startTime, endTime): if requestType == 0: #请求当天数据 socketFun.requestCurrentDay(self, flag, startTime.time()) elif requestType == 1: #请求某一天数据 socketFun.requestOneDay(self, startTime.date(), startTime.time(), endTime.time()) elif requestType == 2: #请求某一段时间数据 socketFun.requestSomeTimes(self, startTime.date(), endTime.date()) else: print "Request illegal Param" return thread.start_new_thread(socketFun.recvSubscibeRespond, (self,1))
def requestData(self, requestType, flag, startTime, endTime): if requestType == 0: # 请求当天数据 socketFun.requestCurrentDay(self, flag, startTime.time()) elif requestType == 1: # 请求某一天数据 socketFun.requestOneDay(self, startTime.date(), startTime.time(), endTime.time()) elif requestType == 2: # 请求某一段时间数据 socketFun.requestSomeTimes(self, startTime.date(), endTime.date()) else: print "Request illegal Param" return thread.start_new_thread(socketFun.recvSubscibeRespond, (self, 1))