示例#1
0
文件: user.py 项目: dbourillot/indico
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     if self._aw.getUser():
         if not self._target.canModify(self._aw):
             raise ServiceError("ERR-U6", _("You are not allowed to perform this request"))
     else:
         raise ServiceError("ERR-U7", _("You are currently not authenticated. Please log in again."))
示例#2
0
文件: category.py 项目: NIIF/indico
 def _checkParams(self):
     LoggedOnlyService._checkParams(self)
     CategoryDisplayBase._checkParams(self)
     userId = ParameterManager(self._params).extract('userId', pType=str, allowEmpty=True)
     if userId is not None:
         self._avatar = AvatarHolder().getById(userId)
     else:
         self._avatar = self._aw.getUser()
示例#3
0
 def _checkParams(self):
     LoggedOnlyService._checkParams(self)
     self._user = self.getAW().getUser()
     self._roomID = int(self._params.get("roomID", ""))
     self._roomLocation = self._params.get("roomLocation",
                                           "").replace("+", " ")
     self._room = CrossLocationQueries.getRooms(roomID=self._roomID,
                                                location=self._roomLocation)
示例#4
0
    def _checkParams(self):
        LoggedOnlyService._checkParams(self)

        self._userList = []

        for userData in self._params['value']:
            self._userList.append(user.AvatarHolder().getById(userData['id']))

        self._target = self.getAW().getUser()
示例#5
0
文件: user.py 项目: bubbas/indico
    def _checkParams(self):
        LoggedOnlyService._checkParams(self)

        self._userList = []

        for userData in self._params['value']:
            self._userList.append(user.AvatarHolder().getById(userData['id']))

        self._target = self.getAW().getUser()
示例#6
0
 def _checkParams(self):
     LoggedOnlyService._checkParams(self)
     CategoryDisplayBase._checkParams(self)
     userId = ParameterManager(self._params).extract('userId',
                                                     pType=str,
                                                     allowEmpty=True)
     if userId is not None:
         self._avatar = AvatarHolder().getById(userId)
     else:
         self._avatar = self._aw.getUser()
示例#7
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     if self._aw.getUser():
         if not self._target.canModify(self._aw):
             raise ServiceError(
                 "ERR-U6", _("You are not allowed to perform this request"))
     else:
         raise ServiceError(
             "ERR-U7",
             _("You are currently not authenticated. Please log in again."))
示例#8
0
 def _checkParams(self):
     LoggedOnlyService._checkParams(self)
     self._target = self.getAW().getUser()
示例#9
0
 def _checkParams(self):
     LoggedOnlyService._checkParams(self)  
     
     self._target = self.getAW().getUser()
     self._info = self._params.get("value",None)
示例#10
0
文件: user.py 项目: jbenito3/indico
    def _checkParams(self):
        LoggedOnlyService._checkParams(self)

        self._time = self._params.get('time', None)
        self._target = self.getAW().getUser()
示例#11
0
文件: user.py 项目: jbenito3/indico
 def _checkParams(self):
     LoggedOnlyService._checkParams(self)
     self._user = self.getAW().getUser()
     self._roomID = int(self._params.get("roomID", ""))
     self._roomLocation = self._params.get("roomLocation", "").replace("+"," ")
     self._room = CrossLocationQueries.getRooms(roomID = self._roomID, location = self._roomLocation)
示例#12
0
    def _checkParams(self):
        LoggedOnlyService._checkParams(self)

        self._time = self._params.get('time', None)
        self._target = self.getAW().getUser()
示例#13
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     CategoryBasketBase._checkProtection(self)
     CategoryDisplayBase._checkProtection(self)
示例#14
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     CategoryDisplayBase._checkProtection(self)
     if not self._avatar.canUserModify(self._aw.getUser()):
         raise ServiceAccessError('Access denied')
示例#15
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
示例#16
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     UserBasketBase._checkProtection(self)
示例#17
0
    def _checkParams(self):
        LoggedOnlyService._checkParams(self)        
        

        self._obj = user.AvatarHolder().getById(self._params['id'])        
        self._target = self.getAW().getUser()  
示例#18
0
 def _checkParams(self):
     LoggedOnlyService._checkParams(self)
     self._target = self._avatar = self.getAW().getUser()
     pm = ParameterManager(self._params)
     self._enablePersistent = pm.extract("enablePersistent", bool, False,
                                         False)
示例#19
0
文件: user.py 项目: bubbas/indico
    def _checkParams(self):
        LoggedOnlyService._checkParams(self)

        self._userData = self._params['value']

        self._target = self.getAW().getUser()
示例#20
0
文件: user.py 项目: bubbas/indico
 def _checkParams(self):
     LoggedOnlyService._checkParams(self)
     self._user = self.getAW().getUser()
     self._lang = self._params.get("lang",None)
示例#21
0
文件: user.py 项目: jbenito3/indico
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     UserBasketBase._checkProtection(self)
示例#22
0
文件: user.py 项目: dbourillot/indico
 def _checkParams(self):
     LoggedOnlyService._checkParams(self)
     self._target = self.getAW().getUser()
示例#23
0
文件: user.py 项目: jbenito3/indico
 def _checkParams(self):
     LoggedOnlyService._checkParams(self)
     self._target = self._avatar = self.getAW().getUser()
     pm = ParameterManager(self._params)
     self._enablePersistent = pm.extract("enablePersistent", bool, False, False)
示例#24
0
文件: category.py 项目: NIIF/indico
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     CategoryDisplayBase._checkProtection(self)
     if not self._avatar.canUserModify(self._aw.getUser()):
         raise ServiceAccessError('Access denied')
示例#25
0
文件: user.py 项目: bubbas/indico
 def _checkParams(self):
     LoggedOnlyService._checkParams(self)
     self._user = self.getAW().getUser()
     self._tzMode = self._params.get("tzMode",None)
示例#26
0
    def _checkParams(self):
        LoggedOnlyService._checkParams(self)

        self._obj = user.AvatarHolder().getById(self._params['id'])
        self._target = self.getAW().getUser()
示例#27
0
文件: user.py 项目: bubbas/indico
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     if self._aw.getUser():
         if not self._avatar.canModify( self._aw ):
             raise ServiceError("ERR-U6", _("You are not allowed to perform this request"))
示例#28
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
示例#29
0
文件: category.py 项目: NIIF/indico
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     CategoryBasketBase._checkProtection(self)
     CategoryDisplayBase._checkProtection(self)
示例#30
0
    def _checkParams(self):
        LoggedOnlyService._checkParams(self)

        self._target = self.getAW().getUser()
        self._info = self._params.get("value", None)