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

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

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

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

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

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

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

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