By explicitly importing the legacy namespace classes, we make it clear that we are using soon-to-be-deprecated classes. We will then be able to start removing the legacy classes, one module at a time.
19 lines
406 B
Python
19 lines
406 B
Python
"""
|
|
Waffle flags and switches
|
|
"""
|
|
|
|
|
|
from edx_toggles.toggles import LegacyWaffleSwitchNamespace
|
|
|
|
WAFFLE_NAMESPACE = u'open_edx_util'
|
|
|
|
# Switches
|
|
DISPLAY_MAINTENANCE_WARNING = u'display_maintenance_warning'
|
|
|
|
|
|
def waffle():
|
|
"""
|
|
Returns the namespaced, cached, audited Waffle class for open_edx_util.
|
|
"""
|
|
return LegacyWaffleSwitchNamespace(name=WAFFLE_NAMESPACE, log_prefix=u'OpenEdX Util: ')
|