def isValid(self): '''是否有效 ''' wday = getDatePart()["wday"] if wday != 7: return 0 return customTask.isValid(self)
def isValid(self): '''是否有效 ''' actObj = activity.triones.getActivity() if actObj: if actObj.inNormalTime(): return 1 else: return 0 return customTask.isValid(self)
def isValid(self): '''是否有效 ''' firstExamObj = answer.getAnswerFirstExamObj() if firstExamObj: if firstExamObj.isInAnswerTime(): return 1 else: return 0 return customTask.isValid(self)
def isValid(self): '''是否有效 ''' holidayId = holidayData.getCurrentHoliday() if not holidayId or not self.fetch("holidayId"): return 0 if holidayId != self.fetch("holidayId"): self.set("holidayId", holidayId) return customTask.isValid(self)