(self, value)
Set the user id. This method is defined explicitly, because:

      - we want to apply a different permission

      - we want to prevent duplicated user ids, but only when
        PAS _AND_ ERP5LoginUserManager are used
Set the user id. This method is defined explicitly, because:
Set the user id . This method is defined explicitly because :
def _setUserId(self, value):
    """
    Set the user id. This method is defined explicitly, because:

      - we want to apply a different permission

      - we want to prevent duplicated user ids, but only when
        PAS _AND_ ERP5LoginUserManager are used
    """
    existing_user_id = self.getUserId()
    if value != existing_user_id:
      if value:
        self.__checkUserIdAvailability(
          pas_plugin_class=ERP5LoginUserManager,
          user_id=value,
        )
      if existing_user_id and not _checkPermission(Permissions.ManageUsers, self):
        raise AccessControl_Unauthorized('setUserId')
      self._baseSetUserId(value)
def _setUserId ( self , value ) : existing_user_id = self . getUserId ( ) if value != existing_user_id : if value : self . __checkUserIdAvailability ( pas_plugin_class = ERP5LoginUserManager , user_id = value , ) if existing_user_id and not _checkPermission ( Permissions . ManageUsers , self ) : raise AccessControl_Unauthorized ( 'setUserId' ) self . _baseSetUserId ( value )