コード例 #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
ファイル: api.py プロジェクト: rhndg/openedx
def is_enabled():
    """Check whether the branding API is enabled. """
    return BrandingApiConfig.current().enabled