Logo
Explore Get Started
stackforge/pecan
Code Issues Proposed changes
Files
88a90d299571a3050243f0dec2ae3fb17c2030d0
pecan/tests/test_config
History
Ryan Petrello 3515a8bcd8 Sometimes you want parts of your config object to just be a dict(). This is especially useful for working with external packages that expect configuration as a dictionary with dotted keys (e.g., 'beaker.session.type'). Now you can specify __force_dict__ in dictionaries in your config, and pecan won't convert them into pecan.configuration.Config objects:
beaker = {
    'session.key'           : 'shootq',
    'session.type'          : 'cookie',
    'session.validate_key'  : 'XYZ',
    '__force_dict__'        : True
}
2010-12-22 11:15:32 -05:00
..
bad
added filepaths for config files, variable replacement, resolving
2010-12-14 14:29:16 -05:00
__init__.py
adding test configuration files and three tests for them. Currently update_set_default fails because configs are not flushing
2010-12-06 12:14:42 -05:00
config.py
changed variable substitution demo
2010-12-14 14:47:16 -05:00
empty.py
making the empty configuration module really empty by removing cruft
2010-12-06 12:19:14 -05:00
forcedict.py
Sometimes you want parts of your config object to just be a dict(). This is especially useful for working with external packages that expect configuration as a dictionary with dotted keys (e.g., 'beaker.session.type'). Now you can specify __force_dict__ in dictionaries in your config, and pecan won't convert them into pecan.configuration.Config objects:
2010-12-22 11:15:32 -05:00
Powered by Gitea Version: v1.24.7 Page: 46ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API