예제 #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
파일: api.py 프로젝트: zolthun/edx-platform
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
파일: test_views.py 프로젝트: epixia/spark
 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