Prefs

Functions:

clean_prefs(request)

Clear and stash prefs, restore on finishing

test_prefs_defaults(default_pref, clean_prefs)

test_prefs_warnings(default_pref, clean_prefs)

Test that getting a default pref warns once and only once

test_prefs_deprecation()

If there is a string in the 'deprecation' field of a pref in _DEFAULTS, a warning is raised printing the string.

clean_prefs(request)[source]

Clear and stash prefs, restore on finishing

test_prefs_defaults(default_pref, clean_prefs)[source]
test_prefs_warnings(default_pref, clean_prefs)[source]

Test that getting a default pref warns once and only once

test_prefs_deprecation()[source]

If there is a string in the 'deprecation' field of a pref in _DEFAULTS, a warning is raised printing the string.