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

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

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

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

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

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

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

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