Exemplo n.º 1
0
Arquivo: api.py Projeto: vintas/indico
 def export_timetable(self, user):
     events = Event.find_all(Event.id.in_(map(int, self._idList)),
                             ~Event.is_deleted)
     return {
         event.id: self._serialize_timetable(event, user)
         for event in events
     }
Exemplo n.º 2
0
 def export_timetable(self, aw):
     serializer = TimetableSerializer(management=False)
     events = Event.find_all(Event.id.in_(map(int, self._idList)),
                             ~Event.is_deleted)
     return {
         event.id: serializer.serialize_timetable(event)
         for event in events
     }
Exemplo n.º 3
0
 def export_timetable(self, user):
     events = Event.find_all(Event.id.in_(map(int, self._idList)),
                             ~Event.is_deleted)
     return {
         event.id: TimetableSerializer(event, management=False,
                                       user=user).serialize_timetable()
         for event in events
     }
Exemplo n.º 4
0
 def export_timetable(self, aw):
     serializer = TimetableSerializer(management=False)
     events = Event.find_all(Event.id.in_(map(int, self._idList)), ~Event.is_deleted)
     return {event.id: serializer.serialize_timetable(event) for event in events}
Exemplo n.º 5
0
Arquivo: api.py Projeto: indico/indico
 def export_timetable(self, user):
     events = Event.find_all(Event.id.in_(map(int, self._idList)), ~Event.is_deleted)
     return {event.id: TimetableSerializer(event, management=False, user=user).serialize_timetable()
             for event in events}