Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-08-19 | Add: Python3 support | Lars Wirzenius | 1 | -34/+38 | |
2015-12-26 | Give better error message if YAML config is bad | Lars Wirzenius | 1 | -0/+1 | |
2015-12-23 | Add support for YAML config files | Lars Wirzenius | 1 | -8/+150 | |
INI files continue to be supported, too. | |||||
2015-08-29 | Fix whitespace, line length | Lars Wirzenius | 1 | -1/+2 | |
2015-08-29 | Allow comma in StringListSetting values | Jan Gerber | 1 | -2/+5 | |
- Escape values with comma with double quotes in config syntax. - Don't split values passed as arguments. | |||||
2015-05-01 | Whitespace fixes for PEP8 | Lars Wirzenius | 1 | -6/+6 | |
2015-04-18 | Add running of pylint in 'make check' and fix things | Lars Wirzenius | 1 | -19/+17 | |
2015-04-18 | Run pep8 in "make check" and fix so it passes | Lars Wirzenius | 1 | -2/+1 | |
2013-12-06 | Make Settings.require accept many arguments | Lars Wirzenius | 1 | -0/+12 | |
Written-by: Stephen Judd <stephenj@catalyst.net.nz> | |||||
2013-10-30 | Nicely report unknown variables in config files | Lars Wirzenius | 1 | -0/+13 | |
Previously we would just raise an ugly exception, now there's a clear error message. | |||||
2013-06-09 | Remove trailing whitespace from ends of lines | Lars Wirzenius | 1 | -26/+26 | |
2012-12-11 | Add --no-foo for every boolean --foo | Lars Wirzenius | 1 | -1/+11 | |
2012-02-23 | Merge changes from elsewhere | Lars Wirzenius | 1 | -1/+11 | |
2012-02-22 | Add a plugin system | Lars Wirzenius | 1 | -1/+1 | |
This code was originally written separately, which is why there's no history of it in the cliapp version control repository. The code is derived from code I wrote for obnam. | |||||
2012-02-22 | Add settings groups | Lars Wirzenius | 1 | -1/+1 | |
2012-02-22 | Make Settings act a bit more like a dict. | Lars Wirzenius | 1 | -0/+10 | |
Thanks to Jannis Pohlmann for giving the inpiration for this change. | |||||
2012-02-11 | Make as_cp retain all sections from config files | Lars Wirzenius | 1 | -0/+20 | |
2012-02-11 | Add as_cp method to return settings values as a ConfigParser | Lars Wirzenius | 1 | -0/+8 | |
2012-01-11 | fix setting booleans to false in config files | Lars Wirzenius | 1 | -0/+14 | |
2011-09-27 | Change license to be GPL version 2 or later. | Lars Wirzenius | 1 | -5/+6 | |
2011-08-29 | Add test case for desired behavior of options overriding values from config ↵ | Lars Wirzenius | 1 | -0/+17 | |
files. | |||||
2011-08-02 | Add test for --no-default-configs --config=foo. | Lars Wirzenius | 1 | -0/+4 | |
2011-08-02 | Add --no-default-configs. | Lars Wirzenius | 1 | -0/+4 | |
2011-08-02 | Add --config option. | Lars Wirzenius | 1 | -0/+5 | |
Had to change self.config_files to set the _config_files attribute to _default_config_files, if it was unset. This was necessary because otherwise any changes we made to it with .append(foo) would not be persistent. It also means that re-reading the config files does not happen. | |||||
2011-07-27 | Add a couple of tests for config files and defaults handling. | Lars Wirzenius | 1 | -0/+30 | |
2011-07-27 | Fix parsing of string_list values in config files. | Lars Wirzenius | 1 | -0/+16 | |
2011-07-18 | Allow usage to be a func, for deferred evaluation. | Lars Wirzenius | 1 | -0/+5 | |
2011-06-26 | Add test for verifying booleans are false by default. | Lars Wirzenius | 1 | -0/+4 | |
2011-06-19 | Add cliapp.Settings.require method. | Lars Wirzenius | 1 | -0/+43 | |
2011-06-12 | Use newer API for adding settings. | Lars Wirzenius | 1 | -21/+21 | |
2011-06-11 | Fix string lists to have a sensible default value handling. | Lars Wirzenius | 1 | -0/+10 | |
Previously, if you set a default value for a string list setting, the user's settings were appended to it. Now the default is used if the user does not specify the setting at all (same as before), but ignored if the user does specify. Thus, if the default for foo was ['bar'], then --foo=pink now results in ['pink'], rather than ['bar', 'pink']. | |||||
2011-05-29 | Fix tests to handle renamed _listconfs method. | Lars Wirzenius | 1 | -3/+3 | |
2011-05-29 | Update docs for settings.py. | Lars Wirzenius | 1 | -3/+3 | |
This included adjusting things so that methods that are not meant to be public are not public. | |||||
2011-03-12 | Add Settings.load_configs. | Lars Wirzenius | 1 | -0/+20 | |
2011-03-12 | Add Settings.config_files attribute. | Lars Wirzenius | 1 | -0/+9 | |
2011-03-12 | Make Settings.listconfs sort the filenames. | Lars Wirzenius | 1 | -0/+6 | |
Need to figure out a way to sort things independent of locale. | |||||
2011-03-12 | Add Settings.listconfs and Settings.default_config_files. | Lars Wirzenius | 1 | -0/+14 | |
2011-03-11 | Fix boolean options. | Lars Wirzenius | 1 | -0/+20 | |
2011-03-11 | Add test for choice options with bad values. | Lars Wirzenius | 1 | -0/+6 | |
2011-03-11 | Add tests for get/setitem and KeyError, and fix getitem to raise it. | Lars Wirzenius | 1 | -0/+6 | |
2011-03-11 | Refactor Settings to use ConfigParser to store values. | Lars Wirzenius | 1 | -25/+0 | |
This will be useful when we add config file support. | |||||
2011-03-11 | Test for default settings the right way. | Lars Wirzenius | 1 | -4/+4 | |
--version and --help are not really settings, but we check for them anyway. | |||||
2011-03-11 | Add Settings.version and Settings.progname. | Lars Wirzenius | 1 | -0/+12 | |
Setting progname also sets it in the option parser. Setting version is not possible, since OptionParser does not allow it. | |||||
2011-03-11 | Make 'settingname in settings' work. | Lars Wirzenius | 1 | -0/+9 | |
2011-03-11 | Use Settings in Application. | Lars Wirzenius | 1 | -1/+1 | |
2011-03-11 | Create a new Settings class to hold settings. | Lars Wirzenius | 1 | -0/+151 | |