예제 #1
0
def subscription_styles_get(plan, ver):
    styles = settings.local.sub_styles[plan]

    return utils.styles_response(
        styles['etag'],
        styles['last_modified'],
        styles['data'],
    )
예제 #2
0
def subscription_styles_get(plan, ver):
    styles = settings.local.sub_styles[plan]

    return utils.styles_response(
        styles['etag'],
        styles['last_modified'],
        styles['data'],
    )
예제 #3
0
def subscription_styles_get(plan, ver):
    try:
        styles = settings.local.sub_styles[plan]
    except KeyError:
        subscription.update()
        styles = settings.local.sub_styles[plan]

    return utils.styles_response(
        styles['etag'],
        styles['last_modified'],
    )
예제 #4
0
def subscription_styles_get(plan, ver):
    try:
        styles = settings.local.sub_styles[plan]
    except KeyError:
        subscription.update()
        styles = settings.local.sub_styles[plan]

    return utils.styles_response(
        styles['etag'],
        styles['last_modified'],
        styles['data'],
    )