Ejemplo n.º 1
0
 def _process_args(self):
     RHUserBase._process_args(self)
     self.identity = Identity.get_or_404(request.view_args['identity'])
     if self.identity.user != self.user:
         raise NotFound()
Ejemplo n.º 2
0
 def _process_args(self):
     RHUserBase._process_args(self)
     self.identity = Identity.get_one(request.view_args['identity'])
     if self.identity.user != self.user:
         raise NotFound()
Ejemplo n.º 3
0
 def _process_args(self):
     RHUserBase._process_args(self)
     self.application = OAuthApplication.get_or_404(request.view_args['id'])
Ejemplo n.º 4
0
 def _process_args(self):
     RHUserBase._process_args(self)
     self.token = OAuthToken.get(request.view_args['id'])
     if self.user != self.token.user:
         raise Forbidden(
             "You can only revoke tokens associated with your user")
Ejemplo n.º 5
0
 def _process_args(self):
     RHUserBase._process_args(self)
     self.token = OAuthToken.get(request.view_args['id'])
     if self.user != self.token.user:
         raise Forbidden("You can only revoke tokens associated with your user")