示例#1
0
 def _handleGet(self):
     return [{
         "id": user.getId(),
         "name": user.getStraightFullName(),
         "competences": c
     } for user, c in self._confPaperReview.getAllUserCompetences(
         True, self._role)]
示例#2
0
    def _checkParams( self, params ):
        user = self._getUser()

        # if no user id was specified and we're logged in
        # assume user wants to see their own profile
        if "userId" not in params and user:
            params["userId"] = user.getId()
            self._doProcess = False

            # just set so that _checkProtection doesn't fail
            self._avatar = user
            self._redirect(self._uh.getURL(**params))
            return
        RHUserBase._checkParams(self, params)
示例#3
0
 def _handleGet(self):
     return [{"id": user.getId(), "name": user.getStraightFullName(), "competences": c}
             for user, c in self._confPaperReview.getAllUserCompetences(True, self._role)]