assembl.lib.config module

Indirection layer to enable getting at the config while not littering the codebase with thread-local access code.

class assembl.lib.config.CascadingSettings(config_dict)[source]

Bases: plaster_pastedeploy.ConfigDict

get(key, default=None)[source]

Return the value for key if key is in the dictionary, else default.

assembl.lib.config.get(name, default=None)[source]

Return a specific setting.

assembl.lib.config.get_config()[source]

Return the whole settings object.

assembl.lib.config.set_config(settings, reconfig=False)[source]

Set the settings object.