コード例 #1
0
    def isValid(self):
        '''是否有效
		'''
        wday = getDatePart()["wday"]
        if wday != 7:
            return 0

        return customTask.isValid(self)
コード例 #2
0
    def isValid(self):
        '''是否有效
		'''
        actObj = activity.triones.getActivity()
        if actObj:
            if actObj.inNormalTime():
                return 1
            else:
                return 0
        return customTask.isValid(self)
コード例 #3
0
	def isValid(self):
		'''是否有效
		'''
		firstExamObj = answer.getAnswerFirstExamObj()
		if firstExamObj:
			if firstExamObj.isInAnswerTime():
				return 1
			else:
				return 0
		return customTask.isValid(self)
コード例 #4
0
ファイル: t10001.py プロジェクト: hw233/GameServer-Python
    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)