Returns the settings associated with this application for all users.
        
        :return     <projexui.xsettings.XSettings>
960458
def systemSettings(self):
        
        if not self._systemSettings:
            if self.isCompiled():
                settings = QtCore.QSettings(XSettings.IniFormat,
                                            XSettings.SystemScope,
                                            self.organizationName(),
                                            self.applicationName())
                rootpath = os.path.dirname(settings.fileName())
            else:
                rootpath = os.path.abspath('.')

            name = self.applicationName()
            filename = os.path.join(rootpath, '{0}.yaml'.format(name))

            self._systemSettings = XSettings(XSettings.YamlFormat,
                                             XSettings.SystemScope,
                                             self.organizationName(),
                                             self.applicationName(),
                                             filename=filename)

        return self._systemSettings
68644
def get_settings_from_client(client):
    
    settings = {
        'username': '',
        'api_key': '',
        'timeout': '',
        'endpoint_url': '',
    }
    try:
        settings['username'] = client.auth.username
        settings['api_key'] = client.auth.api_key
    except AttributeError:
        pass

    transport = _resolve_transport(client.transport)
    try:
        settings['timeout'] = transport.timeout
        settings['endpoint_url'] = transport.endpoint_url
    except AttributeError:
        pass

    return settings
1231038
def module_settings(self):
        
        response = self._get(url.settings_modules)
        self._check_response(response, 200)
        return self._create_response(response)
869856
def _settings(self) -> Settings:
        
        if self.__dict__['__settings'] is None:
            self.__dict__['__settings'] = Settings()
            for file_path in self._get_files():
                if file_path:
                    # noinspection PyProtectedMember
                    self.__dict__['__settings']._load(file_path)
        return self.__dict__['__settings']
715273
def settings(self):
        
        settings_file = os.path.join(os.getcwd(), 'settings', self.module.lower() + '.ini')

        # Loads the settings file once.
        if (not hasattr(self, '_settings') or self._settings is None) and os.path.isfile(settings_file):
            config = ConfigParser.ConfigParser()
            config.read(settings_file)

            settings = dict(config._sections)
            for key in settings:
                settings[key] = dict(config.defaults(), **settings[key])
                settings[key].pop('__name__', None)

            self._settings = SettingsDict(self, settings.get(self.name, {}))

        elif not hasattr(self, '_settings'):
            self._settings = SettingsDict(self, {})

        return self._settings
174948
def list_settings(self):
        
        result = super().list_settings()
        result.append((self.SETTING_BAR_FORMATING, {}))
        result.append((self.SETTING_BAR_CHAR, '='))
        result.append((self.SETTING_BAR_WIDTH, 0))
        return result
1067203
def load_config(self):
        
        for key in self.settings:
            value = self.config(key)
            # Parse true/false
            if value == '' or value is None:
                continue  # Not set by user, go on
            if value.lower() == 'true':
                value = True
            elif value.lower() == 'false':
                value = False
            elif value:
                pass  # A user-defined string, store the value later

            self.settings[key] = value
422964
def get_settings(self):
        
        url = self._imgur._base_url + "/3/account/{0}/settings".format(self.name)
        return self._imgur._send_request(url)
45150
def __get_default_settings(self):
        

        LOGGER.debug("> Accessing '{0}' default settings file!".format(UiConstants.settings_file))
        self.__default_settings = QSettings(
            umbra.ui.common.get_resource_path(UiConstants.settings_file), QSettings.IniFormat)
378742
def config(self):
        
        config = self._get_config()
        return {section: {itm.name: itm for itm in config[section].values()
                          if not itm.readonly}
                for section in config
                if 'settings' in section or section == 'other'}
216905
@Programmatic
    @SuppressWarnings({ "unchecked", "rawtypes" })
    public List<UserSetting> listAll() {
        return (List)repositoryService.allMatches(
                new QueryDefault<>(UserSettingJdo.class,
                        "findAll"));
    }
77605
def get_preferences_from_user(self):
        """"""

        dlg = PreferencesDialog(self.main_window)

        change_choice = dlg.ShowModal()

        preferences = {}

        if change_choice == wx.ID_OK:
            for (parameter, _), ctrl in zip(dlg.parameters, dlg.textctrls):
                if isinstance(ctrl, wx.Choice):
                    value = ctrl.GetStringSelection()
                    if value:
                        preferences[parameter] = repr(value)
                else:
                    preferences[parameter] = repr(ctrl.Value)

        dlg.Destroy()

        return preferences
739327
def get_conversejs_settings():
    
    converse_settings = {
        'CONVERSEJS_AUTO_LIST_ROOMS': False,
        'CONVERSEJS_AUTO_SUBSCRIBE': False,
        'CONVERSEJS_BOSH_SERVICE_URL': 'https://bind.opkode.im',
        'CONVERSEJS_HIDE_MUC_SERVER': False,
        'CONVERSEJS_PREBIND': True,
        'CONVERSEJS_SHOW_CONTROLBOX_BY_DEFAULT': False,
        'CONVERSEJS_XHR_USER_SEARCH': False,
        'CONVERSEJS_DEBUG': settings.DEBUG,
        'CONVERSEJS_SHOW_ONLY_ONLINE_USERS': False,
        'CONVERSEJS_ALLOW_CONTACT_REQUESTS': True,
    }

    for key, value in converse_settings.items():
        conf = getattr(settings, key, value)

        if isinstance(conf, bool):
            conf = unicode(conf).lower()

        converse_settings[key] = conf

    return converse_settings
340490
def get_api_settings(self):
        '''
        
        '''

        sensu_api_url = os.environ.get('SENSU_API_URL')
        if sensu_api_url:
            uri = urlparse(sensu_api_url)
            api_settings = {
                'host': '{0}://{1}'.format(uri.scheme, uri.hostname),
                'port': uri.port,
                'user': uri.username,
                'password': uri.password
            }
        else:
            api_settings = self.settings.get('api', {})
            api_settings['host'] = api_settings.get(
                'host', '127.0.0.1')
            api_settings['port'] = api_settings.get(
                'port', 4567)

        return api_settings
1089537
def get_users(self):
        
        # We make use of the existing controlpanel `@@usergroup-userprefs`
        # view logic to make sure we get all users from all plugins (e.g. LDAP)
        users_view = UsersOverviewControlPanel(self.context, self.request)
        return users_view.doSearch("")
1299135
public static function getAllSettings()
    {
        $settings = Settings::all();

        $settingsList = [];
        foreach($settings as $setting){
            $settingsList[$setting->settingsKey] = $setting->value;
        }

        return $settingsList;
    }
169344
def __get_default_layouts_settings(self):
        

        LOGGER.debug("> Accessing '{0}' default layouts settings file!".format(UiConstants.layouts_file))
        self.__default_layouts_settings = QSettings(umbra.ui.common.get_resource_path(UiConstants.layouts_file),
                                                    QSettings.IniFormat)