Пример #1
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."))
Пример #2
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()
Пример #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
    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
    def _checkParams(self):
        LoggedOnlyService._checkParams(self)

        self._time = self._params.get('time', None)
        self._target = self.getAW().getUser()
Пример #11
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)
Пример #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
    def _checkParams(self):
        LoggedOnlyService._checkParams(self)

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

        self._target = self.getAW().getUser()
Пример #20
0
 def _checkParams(self):
     LoggedOnlyService._checkParams(self)
     self._user = self.getAW().getUser()
     self._lang = self._params.get("lang",None)
Пример #21
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     UserBasketBase._checkProtection(self)
Пример #22
0
 def _checkParams(self):
     LoggedOnlyService._checkParams(self)
     self._target = self.getAW().getUser()
Пример #23
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)
Пример #24
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     CategoryDisplayBase._checkProtection(self)
     if not self._avatar.canUserModify(self._aw.getUser()):
         raise ServiceAccessError('Access denied')
Пример #25
0
 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
 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
 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)