示例#1
0
文件: ui.py 项目: ilius/starcal2
 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
文件: ui.py 项目: karoon/starcal2
 def buildCell(self, jd):
     local_cell = Cell(jd)
     for pluginData in self.plugins.values():
         pluginData['setParamsCallable'](local_cell)
     #local_cell.eventsData = event_man.getDayOccurrenceData(local_cell.jd, eventGroups)
     self.jdCells[jd] = local_cell
     cleanCacheDict(self.jdCells, maxDayCacheSize, jd)
     return local_cell
示例#4
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)
示例#5
0
文件: ui.py 项目: ilius/starcal2
 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