def _checkParams(self, params): RHManageTimetableBase._checkParams(self, params) self.session_block = self.event_new.get_session_block(request.view_args['block_id'], scheduled_only=True) if self.session_block is None: raise NotFound if self.session and self.session != self.session_block.session: raise BadRequest
def _checkParams(self, params): RHManageTimetableBase._checkParams(self, params) self.session_block = None if 'block_id' in request.view_args: self.session_block = self.event_new.get_session_block(request.view_args['block_id']) if self.session_block is None: raise NotFound
def _checkParams(self, params): RHManageTimetableBase._checkParams(self, params) self.session_id = None if 'session_block_id' in request.args: self.session_id = SessionBlock.get_one(request.args['session_block_id']).session_id if self.session and self.session.id != self.session_id: raise BadRequest
def _process_args(self): RHManageTimetableBase._process_args(self) self.session_block = None if 'block_id' in request.view_args: self.session_block = self.event.get_session_block(request.view_args['block_id']) if self.session_block is None: raise NotFound
def _process_args(self): RHManageTimetableBase._process_args(self) self.session_block = self.event.get_session_block(request.view_args['block_id'], scheduled_only=True) if self.session_block is None: raise NotFound if self.session and self.session != self.session_block.session: raise BadRequest
def _process_args(self): RHManageTimetableBase._process_args(self) self.session_id = None if 'session_block_id' in request.args: self.session_id = SessionBlock.get_one(request.args['session_block_id']).session_id if self.session and self.session.id != self.session_id: raise BadRequest
def _process_args(self): RHManageTimetableBase._process_args(self) self.session_id = None if 'session_block_id' in request.args: self.session_id = SessionBlock.get_or_404(request.args['session_block_id']).session_id if self.session and self.session.id != self.session_id: raise BadRequest
def _checkParams(self, params): RHManageTimetableBase._checkParams(self, params) self.day = dateutil.parser.parse(request.args['day']).date() self.session_block = None if 'session_block_id' in request.args: self.session_block = self.event_new.get_session_block(request.args['session_block_id']) if not self.session_block: raise BadRequest
def _process_args(self): RHManageTimetableBase._process_args(self) self.session_block = None if 'block_id' in request.view_args: self.session_block = self.event.get_session_block( request.view_args['block_id']) if self.session_block is None: raise NotFound
def _process_args(self): RHManageTimetableBase._process_args(self) self.day = dateutil.parser.parse(request.args['day']).date() self.session_block = None if 'session_block_id' in request.args: self.session_block = self.event.get_session_block(request.args['session_block_id']) if not self.session_block: raise BadRequest
def _checkParams(self, params): RHManageTimetableBase._checkParams(self, params) self.validate_json(self._json_schema) self.day = dateutil.parser.parse(request.json['day']).date() self.session_block = None if request.json.get('session_block_id') is not None: self.session_block = self.event_new.get_session_block(request.json['session_block_id'], scheduled_only=True) if self.session_block is None: raise NotFound if self.session and self.session != self.session_block.session: raise BadRequest elif request.json.get('session_id') is not None: if self.session.id != request.json['session_id']: raise BadRequest
def _process_args(self): RHManageTimetableBase._process_args(self) self.validate_json(self._json_schema) self.day = dateutil.parser.parse(request.json['day']).date() self.session_block = None if request.json.get('session_block_id') is not None: self.session_block = self.event.get_session_block(request.json['session_block_id'], scheduled_only=True) if self.session_block is None: raise NotFound if self.session and self.session != self.session_block.session: raise BadRequest elif request.json.get('session_id') is not None: if self.session.id != request.json['session_id']: raise BadRequest
def _process_args(self): RHManageTimetableBase._process_args(self) self.entry = self.event.timetable_entries.filter_by( break_id=request.view_args['break_id']).first_or_404() self.break_ = self.entry.break_
def _process_args(self): RHManageTimetableBase._process_args(self) self.contrib = (Contribution.query.with_parent(self.event) .filter_by(id=request.args['contrib_id']) .one())
def _checkParams(self, params): RHManageTimetableBase._checkParams(self, params) self.entry = self.event_new.timetable_entries.filter_by(break_id=request.view_args['break_id']).first_or_404() self.break_ = self.entry.break_
def _check_access(self): if not self.entry.parent or self.entry.parent.type != TimetableEntryType.SESSION_BLOCK: RHManageTimetableBase._check_access(self) elif not self.entry.parent.session_block.session.can_manage( session.user, permission='coordinate'): raise Forbidden
def _process_args(self): RHManageTimetableBase._process_args(self) self.entry = self.event.timetable_entries.filter_by(break_id=request.view_args['break_id']).first_or_404() self.break_ = self.entry.break_
def _process_args(self): RHManageTimetableBase._process_args(self) self.contrib = (Contribution.query.with_parent( self.event).filter_by(id=request.args['contrib_id']).one())