def _checkParams(self, params): RHAdminBase._checkParams(self, params) if request.form.get('undo') == '1': self.user = None else: self.user = User.get_one(int(request.form['user_id']), is_deleted=False)
def _process_args(self): RHAdminBase._process_args(self) if request.form.get('undo') == '1': self.user = None else: self.user = User.get_one(int(request.form['user_id']), is_deleted=False)
def _process_args(self, undo, user_id): RHAdminBase._process_args(self) self.user = None if undo else User.get_or_404(user_id, is_deleted=False)
def _checkParams(self, params): RHAdminBase._checkParams(self, params) self.request = RegistrationRequest.get_one( request.view_args['request_id'])
def _check_access(self): if self.user: RHAdminBase._check_access(self)
def _process_args(self, undo, user_id): RHAdminBase._process_args(self) self.user = None if undo else User.get_one(user_id, is_deleted=False)
def _checkProtection(self): if self.user: RHAdminBase._checkProtection(self)
def _process_args(self): RHAdminBase._process_args(self) if request.form.get('undo') == '1': self.user = None else: self.user = User.get_one(int(request.form['user_id']), is_deleted=False)
def _process_args(self): RHAdminBase._process_args(self) self.reference_type = ReferenceType.find_one(id=request.view_args['reference_type_id'])
def _process_args(self): RHAdminBase._process_args(self) self.reference_type = ReferenceType.find_one( id=request.view_args['reference_type_id'])
def _process_args(self): RHAdminBase._process_args(self) self.event_label = EventLabel.get_or_404( request.view_args['event_label_id'])
def _process_args(self): RHAdminBase._process_args(self) self.reference_type = ReferenceType.query.filter_by( id=request.view_args['reference_type_id']).one()
def _checkParams(self, params): RHAdminBase._checkParams(self, params) self.reference_type = ReferenceType.find_one( id=request.view_args['reference_type_id'])
def _check_access(self): if self.user: RHAdminBase._check_access(self)
def _process_args(self): RHAdminBase._process_args(self) self.request = RegistrationRequest.get_one( request.view_args['request_id'])
def _process_args(self): RHAdminBase._process_args(self) self.request = RegistrationRequest.get_one(request.view_args['request_id'])
def _process_args(self): RHAdminBase._process_args(self) self.event_label = event_labels_store.get( request.view_args['event_label_id']) if self.event_label is None: raise NotFound