예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
파일: controllers.py 프로젝트: javfg/indico
 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)
예제 #4
0
 def _checkParams(self, params):
     RHAdminBase._checkParams(self, params)
     self.request = RegistrationRequest.get_one(
         request.view_args['request_id'])
예제 #5
0
 def _check_access(self):
     if self.user:
         RHAdminBase._check_access(self)
예제 #6
0
 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)
예제 #7
0
 def _checkProtection(self):
     if self.user:
         RHAdminBase._checkProtection(self)
예제 #8
0
 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)
예제 #9
0
파일: admin.py 프로젝트: indico/indico
 def _process_args(self):
     RHAdminBase._process_args(self)
     self.reference_type = ReferenceType.find_one(id=request.view_args['reference_type_id'])
예제 #10
0
 def _process_args(self):
     RHAdminBase._process_args(self)
     self.reference_type = ReferenceType.find_one(
         id=request.view_args['reference_type_id'])
예제 #11
0
파일: admin.py 프로젝트: mkopcic/indico
 def _process_args(self):
     RHAdminBase._process_args(self)
     self.event_label = EventLabel.get_or_404(
         request.view_args['event_label_id'])
예제 #12
0
 def _process_args(self):
     RHAdminBase._process_args(self)
     self.reference_type = ReferenceType.query.filter_by(
         id=request.view_args['reference_type_id']).one()
예제 #13
0
 def _checkParams(self, params):
     RHAdminBase._checkParams(self, params)
     self.reference_type = ReferenceType.find_one(
         id=request.view_args['reference_type_id'])
예제 #14
0
파일: controllers.py 프로젝트: javfg/indico
 def _check_access(self):
     if self.user:
         RHAdminBase._check_access(self)
예제 #15
0
 def _process_args(self):
     RHAdminBase._process_args(self)
     self.request = RegistrationRequest.get_one(
         request.view_args['request_id'])
예제 #16
0
파일: controllers.py 프로젝트: jas01/indico
 def _process_args(self):
     RHAdminBase._process_args(self)
     self.request = RegistrationRequest.get_one(request.view_args['request_id'])
예제 #17
0
 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