Ejemplo n.º 1
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     image_id = request.view_args['image_id']
     self.image = ImageFile.get_one(image_id)
Ejemplo n.º 2
0
 def _process_args(self):
     RHConferenceBaseDisplay._process_args(self)
     self.session = Session.get_one(request.view_args['session_id'],
                                    is_deleted=False)
Ejemplo n.º 3
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.timetable_layout = request.args.get('layout') or request.args.get(
         'ttLyt')
     self.theme, self.theme_override = get_theme(self.event_new,
                                                 request.args.get('view'))
Ejemplo n.º 4
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.page = EventPage.get_one(request.view_args['page_id'])
Ejemplo n.º 5
0
 def _process_args(self):
     RHConferenceBaseDisplay._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.º 6
0
 def _check_access(self):
     RHConferenceBaseDisplay._check_access(self)
     if not self.folder.can_access(session.user):
         raise Forbidden
Ejemplo n.º 7
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.contribs = self.event_new.contributions
     self.list_generator = ContributionDisplayListGenerator(
         event=self.event_new)
Ejemplo n.º 8
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.agreement = Agreement.get_one(request.view_args['id'])
     if self.agreement.is_orphan():
         raise NotFound('The agreement is not active anymore')
Ejemplo n.º 9
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.contrib = Contribution.get_one(request.view_args['contrib_id'],
                                         is_deleted=False)
Ejemplo n.º 10
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if not is_menu_entry_enabled(self.MENU_ENTRY_NAME, self.event_new):
         self._forbidden_if_not_admin()
Ejemplo n.º 11
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if not self.contrib.can_access(session.user):
         raise Forbidden
Ejemplo n.º 12
0
 def _process_args(self):
     RHConferenceBaseDisplay._process_args(self)
     self.entry = self.event.timetable_entries.filter_by(
         id=request.view_args['entry_id']).first_or_404()
Ejemplo n.º 13
0
 def _process_args(self):
     RHConferenceBaseDisplay._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.º 14
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     SpecificFolderMixin._checkParams(self)
Ejemplo n.º 15
0
 def _process_args(self):
     RHConferenceBaseDisplay._process_args(self)
     self.contribs = self.event.contributions
     self.list_generator = ContributionDisplayListGenerator(
         event=self.event)
Ejemplo n.º 16
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     # Only let managers access the management versions.
     if self.management and not self.event_new.cfp.is_manager(session.user):
         raise Forbidden
Ejemplo n.º 17
0
 def _process_args(self):
     RHConferenceBaseDisplay._process_args(self)
     self.contrib = Contribution.get_one(request.view_args['contrib_id'],
                                         is_deleted=False)
Ejemplo n.º 18
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if self.agreement.uuid != request.view_args['uuid']:
         raise Forbidden(_("The URL for this agreement is invalid."))
     if self.agreement.user:
         self._checkSessionUser()
Ejemplo n.º 19
0
 def _check_access(self):
     RHConferenceBaseDisplay._check_access(self)
     if not is_menu_entry_enabled(self.MENU_ENTRY_NAME, self.event):
         self._forbidden_if_not_admin()
Ejemplo n.º 20
0
 def _process_args(self):
     RHConferenceBaseDisplay._process_args(self)
     SpecificFolderMixin._process_args(self)
Ejemplo n.º 21
0
 def _process_args(self):
     RHConferenceBaseDisplay._process_args(self)
     image_id = request.view_args['image_id']
     self.image = ImageFile.get_one(image_id)
Ejemplo n.º 22
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     # Only let event managers access the management versions.
     if self.management and not self.event_new.can_manage(session.user):
         raise Forbidden
     check_event_locked(self, self.event_new)
Ejemplo n.º 23
0
 def _checkProtection(self):
     if not session.user:
         raise Forbidden
     RHConferenceBaseDisplay._checkProtection(self)
Ejemplo n.º 24
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.entry = self.event_new.timetable_entries.filter_by(
         id=request.view_args['entry_id']).first_or_404()
Ejemplo n.º 25
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.session = Session.get_one(request.view_args['session_id'],
                                    is_deleted=False)
Ejemplo n.º 26
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.force_overview = request.view_args.get('force_overview', False)
     self.theme_id, self.theme_override = get_theme(
         self.event_new, request.args.get('view'))
Ejemplo n.º 27
0
 def _process_args(self):
     RHConferenceBaseDisplay._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.º 28
0
 def _process_args(self):
     RHConferenceBaseDisplay._process_args(self)
     self.page = EventPage.get_one(request.view_args['page_id'])
Ejemplo n.º 29
0
 def _check_access(self):
     if not session.user:
         raise Forbidden
     RHConferenceBaseDisplay._check_access(self)