Beispiel #1
0
 def _process_PATCH(self):
     RHSessionREST._process_PATCH(self)
     return jsonify_data(entries=[
         serialize_entry_update(block.timetable_entry)
         for block in self.session.blocks
     ],
                         flash=False)
Beispiel #2
0
 def _process_PATCH(self):
     RHSessionREST._process_PATCH(self)
     entries = [
         serialize_entry_update(
             block.timetable_entry,
             session_=(self.session if self.is_session_timetable else None))
         for block in self.session.blocks
     ]
     return jsonify_data(entries=entries, flash=False)
Beispiel #3
0
 def _process_args(self):
     RHSessionREST._process_args(self)
     self.is_session_timetable = request.args.get(
         'is_session_timetable') == '1'
Beispiel #4
0
 def _process_PATCH(self):
     RHSessionREST._process_PATCH(self)
     return jsonify_data(entries=[serialize_entry_update(block.timetable_entry) for block in self.session.blocks],
                         flash=False)
Beispiel #5
0
 def _process_PATCH(self):
     RHSessionREST._process_PATCH(self)
     entries = [serialize_entry_update(block.timetable_entry,
                                       session_=(self.session if self.is_session_timetable else None))
                for block in self.session.blocks]
     return jsonify_data(entries=entries, flash=False)
Beispiel #6
0
 def _process_args(self):
     RHSessionREST._process_args(self)
     self.is_session_timetable = request.args.get('is_session_timetable') == '1'