summaryrefslogtreecommitdiff
path: root/src/leap/common/config
AgeCommit message (Collapse)Author
2016-07-11[pkg] remove dependency on dirspecdrebs
This commit removes the dep introduced in 5e12233 by just importing some tiny bit of dirspec code. The previous change was introduced because: * pyxdg did not account for Mac OS specifics, i.e. using ~/Library/ directory structure instead of .config (see: https://leap.se/code/issues/3574). * dirspec does the correct thing for xdg on Mac OS. * u1db depends on dirspec anyway. The problem is that dirspec is not maintained and published on pypi, what forces us to download it from an URL and add exceptions to be able to pip install it. As we are removing dependence on u1db on other modules, we can also remove it here. To workaround the Mac OS problem, we just add some code from dirspec to ensure we get the correct directory on Mac OS.
2016-07-11[test] toxify testsdrebs
2015-10-07[bug] consider STANDALONE for the pathsIvan Alejandro
Since we need to write a file we have to consider whether we are running in 'standalone' mode or not to use the right path prefix. - Related: #7512
2015-07-23[style] Fixed pep8 warningsBruno Wagner
2013-08-29Update baseconfig tests to use schema correctly.Ivan Alejandro
2013-08-28Use dirspec instead of plain xdg. Closes #3574.Ivan Alejandro
2013-08-07Fix old parameter error.Ivan Alejandro
2013-08-07Handle schemas and api versions in base class.Ivan Alejandro
2013-08-06Check if schema exists before load a config.Ivan Alejandro
Related to #3310.
2013-07-30Fix path prefix for OSXTomás Touceda
2013-07-02Add tests for the BaseConfig class.Ivan Alejandro
2013-06-27Bugfix: use the provider's default language as default stringIvan Alejandro
Also take care (and note) a possible case with a problematic provider misconfiguration.
2013-05-29change docstring comments to use sphinx styleKali Kaneko
2013-05-29allow absolute paths to config.loadKali Kaneko
2013-05-01return None if no key found, avoid KeyErrorKali Kaneko
2013-04-09add BaseConfig class and its dependenciesKali Kaneko