bp.preferences 0.1
Preference system for applications
bp.preferences is based on the Preference package available on PyPI (http://pypi.python.org/pypi/Preferences).
It overwrites the load_files method to change the behaviour of loading preferences from different files. On initialization preferences are always loaded in this order:
- package_location/file_name.cfg (contains default preferences)
- /etc/file_name
- ~/.file_name
- current_working_direcory/file_name
Additionaly some methods are added to make conversion of preference values to Python types easier:
- def _toString(self, value):
- Converts a string enclosed with single or double quotes to a Python string without quotes. This is needed e.g. to support preference values with leading/trailing whitespace characters.
CHANGELOG
0.1
- Initial release
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| bp.preferences-0.1.tar.gz (md5) | Source | 2010-09-06 | 2KB | 394 | |
- Author: Andreas Kaiser
- Home Page: http://github.com/disko/bp.preferences
- License: BSD
- Package Index Owner: disko
- DOAP record: bp.preferences-0.1.xml
