Beispiel #1
0
 def _process(self):
     event_info = serialize_event_info(self.event)
     timetable_data = TimetableSerializer(
         self.event, management=True).serialize_timetable()
     return WPManageTimetable.render_template('management.html',
                                              self.event,
                                              event_info=event_info,
                                              timetable_data=timetable_data)
Beispiel #2
0
 def _process(self):
     event_info = serialize_event_info(self.event)
     event_info['timetableSession'] = serialize_session(self.session)
     timetable_data = TimetableSerializer(self.event, management=True).serialize_session_timetable(self.session)
     management_rights = {
         'can_manage_event': self.event.can_manage(session.user),
         'can_manage_session': self.session.can_manage(session.user),
         'can_manage_blocks': self.session.can_manage_blocks(session.user),
         'can_manage_contributions': self.session.can_manage_contributions(session.user)
     }
     return WPManageTimetable.render_template('session_management.html', self.event, event_info=event_info,
                                              timetable_data=timetable_data, session_=self.session,
                                              **management_rights)
Beispiel #3
0
 def _process(self):
     event_info = serialize_event_info(self.event_new)
     event_info['timetableSession'] = serialize_session(self.session)
     timetable_data = TimetableSerializer(management=True).serialize_session_timetable(self.session)
     management_rights = {
         'can_manage_event': self.event_new.can_manage(session.user),
         'can_manage_session': self.session.can_manage(session.user),
         'can_manage_blocks': self.session.can_manage_blocks(session.user),
         'can_manage_contributions': self.session.can_manage_contributions(session.user)
     }
     return WPManageTimetable.render_template('session_management.html', self._conf, event_info=event_info,
                                              timetable_data=timetable_data, session_=self.session,
                                              **management_rights)
Beispiel #4
0
 def _process(self):
     event_info = serialize_event_info(self.event)
     timetable_data = TimetableSerializer(self.event, management=True).serialize_timetable()
     return WPManageTimetable.render_template('management.html', self.event, event_info=event_info,
                                              timetable_data=timetable_data)