seclusion is dead, long live solitude

This commit is contained in:
Andy McKay 2012-11-27 13:32:50 -08:00
Родитель fa70a60608
Коммит a7a86304b7
7 изменённых файлов: 19 добавлений и 20 удалений

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

@ -160,15 +160,15 @@ class ZamboniClient(Client):
def get_client():
# If you haven't specified a seclusion host, we can't do anything.
if settings.SECLUSION_HOSTS:
# If you haven't specified a solitude host, we can't do anything.
if settings.SOLITUDE_HOSTS:
config = {
# TODO: when seclusion can cope with multiple hosts, we'll pass
# them all through and let seclusion do its magic.
'server': settings.SECLUSION_HOSTS[0],
'key': settings.SECLUSION_KEY,
'secret': settings.SECLUSION_SECRET,
'timeout': settings.SECLUSION_TIMEOUT
'server': settings.SOLITUDE_HOSTS[0],
'key': settings.SOLITUDE_KEY,
'secret': settings.SOLITUDE_SECRET,
'timeout': settings.SOLITUDE_TIMEOUT
}
client = ZamboniClient(config)
client.encoder = ZamboniEncoder

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

@ -16,7 +16,7 @@ from lib.pay_server import (client, filter_encoder, model_to_uid,
from lib.pay_server.errors import codes, lookup
@patch.object(settings, 'SECLUSION_HOSTS', ('http://localhost'))
@patch.object(settings, 'SOLITUDE_HOSTS', ('http://localhost'))
@patch.object(settings, 'DOMAIN', 'testy')
class TestUtils(test_utils.TestCase):
@ -124,7 +124,7 @@ class TestUtils(test_utils.TestCase):
eq_(kwargs['data']['paypal_id'], 'foo')
@patch.object(settings, 'SECLUSION_HOSTS', ('http://localhost'))
@patch.object(settings, 'SOLITUDE_HOSTS', ('http://localhost'))
@patch.object(settings, 'DOMAIN', 'testy')
class TestPay(test_utils.TestCase):

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

@ -1467,16 +1467,15 @@ IN_TEST_SUITE = False
# Flip this on in your local settings to experience the joy of ES tests.
RUN_ES_TESTS = False
# The configuration for seclusion the client that speaks to solitude.
# A tuple of the solitude hosts that seclusion will speak to.
SECLUSION_HOSTS = ('',)
# The configuration for the client that speaks to solitude.
# A tuple of the solitude hosts.
SOLITUDE_HOSTS = ('',)
# The oAuth key and secret that solitude needs.
SECLUSION_KEY = ''
SECLUSION_SECRET = ''
# The timeout we'll give seclusion. Since this often involves calling Paypal or
# other servers, we are including that in this.
SECLUSION_TIMEOUT = 10
SOLITUDE_KEY = ''
SOLITUDE_SECRET = ''
# The timeout we'll give solitude.
SOLITUDE_TIMEOUT = 10
# Temporary flag to work with navigator.mozPay() on devices that don't
# support it natively.

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

@ -110,7 +110,7 @@ INAPP_KEY_PATHS = private_mkt.INAPP_KEY_PATHS
WEBAPP_MANIFEST_NAME = 'Mozilla Marketplace (Dev)'
SECLUSION_HOSTS = ('https://payments-dev.allizom.org',)
SOLITUDE_HOSTS = ('https://payments-dev.allizom.org',)
PAYPAL_LIMIT_PREAPPROVAL = False

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

@ -113,7 +113,7 @@ INAPP_KEY_PATHS = private_mkt.INAPP_KEY_PATHS
WEBAPP_MANIFEST_NAME = 'Mozilla Marketplace (Dev)'
SECLUSION_HOSTS = ('https://payments-dev.allizom.org',)
SOLITUDE_HOSTS = ('https://payments-dev.allizom.org',)
PAYPAL_LIMIT_PREAPPROVAL = False

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

@ -110,7 +110,7 @@ INAPP_KEY_PATHS = private_mkt.INAPP_KEY_PATHS
WEBAPP_MANIFEST_NAME = 'Mozilla Marketplace (Dev)'
SECLUSION_HOSTS = ('https://payments-dev.allizom.org',)
SOLITUDE_HOSTS = ('https://payments-dev.allizom.org',)
PAYPAL_LIMIT_PREAPPROVAL = False

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

@ -104,7 +104,7 @@ VALIDATOR_IAF_URLS = ['https://marketplace.firefox.com',
'https://marketplace.allizom.org',
'https://marketplace-dev.allizom.org']
SECLUSION_HOSTS = ('https://payments.allizom.org',)
SOLITUDE_HOSTS = ('https://payments.allizom.org',)
GEOIP_NOOP = 0