示例#1
0
def is_enabled():
    """Check whether the branding API is enabled. """
    # TODO (ECOM-1339): Remove this comment
    # Currently, the branding API configuration controls two things:
    # 1) whether we're using the new version of the footer
    # 2) whether we're exposing footer information through the API.
    #
    # Once we've enabled the new footer, the feature flag will control
    # only (2), but not (1).
    return BrandingApiConfig.current().enabled
示例#2
0
def is_enabled():
    """Check whether the branding API is enabled. """
    return BrandingApiConfig.current().enabled
示例#3
0
 def _set_feature_flag(self, enabled):
     """Enable or disable the feature flag for the branding API end-points. """
     config = BrandingApiConfig(enabled=enabled)
     config.save()
示例#4
0
 def _set_feature_flag(self, enabled):
     """Enable or disable the feature flag for the branding API end-points. """
     config = BrandingApiConfig(enabled=enabled)
     config.save()
示例#5
0
文件: api.py 项目: rhndg/openedx
def is_enabled():
    """Check whether the branding API is enabled. """
    return BrandingApiConfig.current().enabled