Example #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."))
Example #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()
Example #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)
Example #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()
Example #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()
Example #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()
Example #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."))
Example #8
0
 def _checkParams(self):
     LoggedOnlyService._checkParams(self)
     self._target = self.getAW().getUser()
Example #9
0
 def _checkParams(self):
     LoggedOnlyService._checkParams(self)  
     
     self._target = self.getAW().getUser()
     self._info = self._params.get("value",None)
Example #10
0
    def _checkParams(self):
        LoggedOnlyService._checkParams(self)

        self._time = self._params.get('time', None)
        self._target = self.getAW().getUser()
Example #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)
Example #12
0
    def _checkParams(self):
        LoggedOnlyService._checkParams(self)

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

        self._obj = user.AvatarHolder().getById(self._params['id'])        
        self._target = self.getAW().getUser()  
Example #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)
Example #19
0
    def _checkParams(self):
        LoggedOnlyService._checkParams(self)

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

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

        self._obj = user.AvatarHolder().getById(self._params['id'])
        self._target = self.getAW().getUser()
Example #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"))
Example #28
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
Example #29
0
 def _checkProtection(self):
     LoggedOnlyService._checkProtection(self)
     CategoryBasketBase._checkProtection(self)
     CategoryDisplayBase._checkProtection(self)
Example #30
0
    def _checkParams(self):
        LoggedOnlyService._checkParams(self)

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