Beispiel #1
0
 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
     }
Beispiel #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
     }
Beispiel #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
     }
Beispiel #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}
Beispiel #5
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}