Hide UI behind in-app-payments-ui flag

This commit is contained in:
Kumar McMillan 2012-03-20 14:31:22 -05:00
Родитель 54ad04a3ef
Коммит f069f66347
2 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -47,7 +47,7 @@ def decode_request(signed_request):
@anonymous_csrf
@remote_jsonp_view
@waffle_switch('in-app-payments')
@waffle_switch('in-app-payments-ui')
def pay_start(request):
signed_req = request.GET.get('req')
if not signed_req:
@ -64,7 +64,7 @@ def pay_start(request):
@anonymous_csrf
@login_required
@remote_jsonp_view
@waffle_switch('in-app-payments')
@waffle_switch('in-app-payments-ui')
def pay(request):
signed_req = request.GET.get('req')
if not signed_req:
@ -78,6 +78,6 @@ def pay(request):
@remote_jsonp_view
@waffle_switch('in-app-payments')
@waffle_switch('in-app-payments-ui')
def inject_styles(request):
return jingo.render(request, 'payments/inject_styles.html', {})

Просмотреть файл

@ -0,0 +1,3 @@
INSERT INTO waffle_switch_mkt (name, active, note)
VALUES ('in-app-payments-ui', 0, "Support in-app payments UI." )
ON DUPLICATE KEY UPDATE active = 0;