Ejemplo n.º 1
0
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.timetable_layout = request.args.get('layout') or request.args.get('ttLyt')
     self.theme, self.theme_override = get_theme(self.event, request.args.get('view'))
Ejemplo n.º 2
0
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.entry = self.event.timetable_entries.filter_by(id=request.view_args['entry_id']).first_or_404()
Ejemplo n.º 3
0
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.agreement = Agreement.get_one(request.view_args['id'])
     if self.agreement.is_orphan():
         raise NotFound('The agreement is not active anymore')
Ejemplo n.º 4
0
 def _check_access(self):
     RHDisplayEventBase._check_access(self)
     # Only let managers access the management versions.
     if self.management and not self.event.cfp.is_manager(session.user):
         raise Forbidden
Ejemplo n.º 5
0
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.contribs = self.event.contributions
     self.list_generator = ContributionDisplayListGenerator(
         event=self.event)
Ejemplo n.º 6
0
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.force_overview = request.view_args.get('force_overview', False)
     self.theme_id, self.theme_override = get_theme(
         self.event, request.args.get('view'))
Ejemplo n.º 7
0
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.contrib = Contribution.get_one(request.view_args['contrib_id'],
                                         is_deleted=False)
Ejemplo n.º 8
0
 def _check_access(self):
     RHDisplayEventBase._check_access(self)
     if not is_menu_entry_enabled(self.MENU_ENTRY_NAME, self.event):
         self._forbidden_if_not_admin()
Ejemplo n.º 9
0
 def _check_access(self):
     RHDisplayEventBase._check_access(self)
     if not self.contrib.can_access(session.user):
         raise Forbidden
Ejemplo n.º 10
0
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     image_id = request.view_args['image_id']
     self.image = ImageFile.get_one(image_id)
Ejemplo n.º 11
0
 def _check_access(self):
     RHDisplayEventBase._check_access(self)
     # Only let event managers access the management versions.
     if self.management and not self.event.can_manage(session.user):
         raise Forbidden
     check_event_locked(self, self.event)
Ejemplo n.º 12
0
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     self.page = EventPage.get_one(request.view_args['page_id'])
Ejemplo n.º 13
0
 def _process_args(self):
     RHDisplayEventBase._process_args(self)
     SpecificFolderMixin._process_args(self)