Example #1
0
    def _getUpcomingEvents(self):
        upcomingMod = ModulesHolder().getById('upcoming_events')

        # Just convert UTC to display timezone
        return map(lambda x: (x[0], x[1].astimezone(self._timezone), x[2], x[3]),
                   upcomingMod.getUpcomingEventList())