예제 #1
0
파일: ui.py 프로젝트: ilius/starcal
	def buildCell(self, jd):
		localCell = Cell(jd)
		for pluginData in self.plugins.values():
			pluginData[0](localCell)
		self.jdCells[jd] = localCell
		cleanCacheDict(self.jdCells, maxDayCacheSize, jd)
		return localCell
예제 #2
0
	def buildCell(self, jd):
		localCell = Cell(jd)
		for pluginData in self.plugins.values():
			pluginData[0](localCell)
		self.jdCells[jd] = localCell
		cleanCacheDict(self.jdCells, maxDayCacheSize, jd)
		return localCell
예제 #3
0
	def getWeekData(self, absWeekNumber):
		cells = self.getCellGroup('WeekCal', absWeekNumber)
		try:
			wEventData = self.weekEvents[absWeekNumber]
		except KeyError:
			wEventData = event_lib.getWeekOccurrenceData(absWeekNumber, eventGroups)
			cleanCacheDict(self.weekEvents, maxWeekCacheSize, absWeekNumber)
			self.weekEvents[absWeekNumber] = wEventData
		return cells, wEventData
예제 #4
0
파일: ui.py 프로젝트: ilius/starcal
	def getWeekData(self, absWeekNumber):
		cells = self.getCellGroup("WeekCal", absWeekNumber)
		wEventData = self.weekEvents.get(absWeekNumber)
		if wEventData is None:
			wEventData = event_lib.getWeekOccurrenceData(
				absWeekNumber,
				eventGroups,
			)
			cleanCacheDict(self.weekEvents, maxWeekCacheSize, absWeekNumber)
			self.weekEvents[absWeekNumber] = wEventData
		return cells, wEventData
예제 #5
0
	def getWeekData(self, absWeekNumber):
		cells = self.getCellGroup("WeekCal", absWeekNumber)
		wEventData = self.weekEvents.get(absWeekNumber)
		if wEventData is None:
			wEventData = event_lib.getWeekOccurrenceData(
				absWeekNumber,
				eventGroups,
			)
			cleanCacheDict(self.weekEvents, maxWeekCacheSize, absWeekNumber)
			self.weekEvents[absWeekNumber] = wEventData
		return cells, wEventData