Obtain subscription info from Store.

This was in Pillar, and is now moved to Blender Cloud. It's used to obtain
the subscription expiration date from Blender Store.
This commit is contained in:
2017-11-30 15:45:40 +01:00
parent d5d189de8c
commit 532bf60041
4 changed files with 80 additions and 3 deletions

View File

@@ -340,6 +340,8 @@ def emails():
def billing():
"""View the subscription status of a user
"""
from . import store
if current_user.has_role('protected'):
return abort(404) # TODO: make this 403, handle template properly
api = system_util.pillar_api()
@@ -350,7 +352,7 @@ def billing():
group = Group.find(group_id, api=api)
groups.append(group.name)
store_user = pillar.api.blender_cloud.subscription.fetch_subscription_info(user.email)
store_user = store.fetch_subscription_info(user.email)
return render_template(
'users/settings/billing.html',