本文整理汇总了Python中indico.modules.events.controllers.base.RHDisplayEventBase类的典型用法代码示例。如果您正苦于以下问题:Python RHDisplayEventBase类的具体用法?Python RHDisplayEventBase怎么用?Python RHDisplayEventBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了RHDisplayEventBase类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _process_args
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')
示例2: _process_args
def _process_args(self):
RHDisplayEventBase._process_args(self)
self.contribs = self.event.contributions
self.list_generator = ContributionDisplayListGenerator(event=self.event)
示例3: _check_access
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
示例4: _check_access
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()
示例5: _process_args
def _process_args(self):
RHDisplayEventBase._process_args(self)
image_id = request.view_args['image_id']
self.image = ImageFile.get_one(image_id)
示例6: _process_args
def _process_args(self):
RHDisplayEventBase._process_args(self)
SpecificFolderMixin._process_args(self)
示例7: _process_args
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'))
示例8: _process_args
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()
示例9: _process_args
def _process_args(self):
RHDisplayEventBase._process_args(self)
self.page = EventPage.get_one(request.view_args['page_id'])
示例10: _check_access
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)
示例11: _process_args
def _process_args(self):
RHDisplayEventBase._process_args(self)
self.session = Session.get_one(request.view_args['session_id'], is_deleted=False)
示例12: _check_access
def _check_access(self):
if not session.user:
raise Forbidden
RHDisplayEventBase._check_access(self)
示例13: _check_access
def _check_access(self):
RHDisplayEventBase._check_access(self)
if not self.entry.can_view(session.user):
raise Forbidden