Пример #1
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     image_id = request.view_args['image_id']
     self.image = ImageFile.get_one(image_id)
Пример #2
0
 def _process_args(self):
     RHConferenceBaseDisplay._process_args(self)
     self.session = Session.get_one(request.view_args['session_id'],
                                    is_deleted=False)
Пример #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'))
Пример #4
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.page = EventPage.get_one(request.view_args['page_id'])
Пример #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'))
Пример #6
0
 def _check_access(self):
     RHConferenceBaseDisplay._check_access(self)
     if not self.folder.can_access(session.user):
         raise Forbidden
Пример #7
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.contribs = self.event_new.contributions
     self.list_generator = ContributionDisplayListGenerator(
         event=self.event_new)
Пример #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')
Пример #9
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.contrib = Contribution.get_one(request.view_args['contrib_id'],
                                         is_deleted=False)
Пример #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()
Пример #11
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if not self.contrib.can_access(session.user):
         raise Forbidden
Пример #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()
Пример #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'))
Пример #14
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     SpecificFolderMixin._checkParams(self)
Пример #15
0
 def _process_args(self):
     RHConferenceBaseDisplay._process_args(self)
     self.contribs = self.event.contributions
     self.list_generator = ContributionDisplayListGenerator(
         event=self.event)
Пример #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
Пример #17
0
 def _process_args(self):
     RHConferenceBaseDisplay._process_args(self)
     self.contrib = Contribution.get_one(request.view_args['contrib_id'],
                                         is_deleted=False)
Пример #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()
Пример #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()
Пример #20
0
 def _process_args(self):
     RHConferenceBaseDisplay._process_args(self)
     SpecificFolderMixin._process_args(self)
Пример #21
0
 def _process_args(self):
     RHConferenceBaseDisplay._process_args(self)
     image_id = request.view_args['image_id']
     self.image = ImageFile.get_one(image_id)
Пример #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)
Пример #23
0
 def _checkProtection(self):
     if not session.user:
         raise Forbidden
     RHConferenceBaseDisplay._checkProtection(self)
Пример #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()
Пример #25
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.session = Session.get_one(request.view_args['session_id'],
                                    is_deleted=False)
Пример #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'))
Пример #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')
Пример #28
0
 def _process_args(self):
     RHConferenceBaseDisplay._process_args(self)
     self.page = EventPage.get_one(request.view_args['page_id'])
Пример #29
0
 def _check_access(self):
     if not session.user:
         raise Forbidden
     RHConferenceBaseDisplay._check_access(self)