コード例 #1
0
ファイル: catalyst.py プロジェクト: UWIT-IAM/uw-restclients
    def getURL(self, url, headers):
        host = settings.RESTCLIENTS_CATALYST_HOST

        if hasattr(settings, "RESTCLIENTS_CATALYST_CERT_FILE"):
            Live.pool = get_con_pool(host,
                                     settings.RESTCLIENTS_CATALYST_KEY_FILE,
                                     settings.RESTCLIENTS_CATALYST_CERT_FILE)

        else:
            Live.pool = get_con_pool(host)

        if hasattr(settings, "RESTCLIENTS_CATALYST_SOL_AUTH_PRIVATE_KEY"):
            # Use js_rest instead of rest, to avoid certificate issues
            url = url.replace("/rest/", "/js_rest/")
            now_with_tz = datetime.datetime.now(
                pytz.utc).strftime("%a %b %d %H:%M:%S %Z %Y")
            header_base = "%s\nGET\n%s\n%s\n" % (
                settings.RESTCLIENTS_CATALYST_SOL_AUTH_PRIVATE_KEY, url,
                now_with_tz)

            public_key = settings.RESTCLIENTS_CATALYST_SOL_AUTH_PUBLIC_KEY
            hashed = hashlib.sha1(header_base).hexdigest()
            headers["Authorization"] = "SolAuth %s:%s" % (public_key, hashed)
            headers["Date"] = now_with_tz

        return get_live_url(Live.pool, "GET", host, url, headers=headers)
コード例 #2
0
    def getURL(self, url, headers):
        host = settings.RESTCLIENTS_CATALYST_HOST

        if hasattr(settings, "RESTCLIENTS_CATALYST_CERT_FILE"):
             Live.pool = get_con_pool(host,
                                      settings.RESTCLIENTS_CATALYST_KEY_FILE,
                                      settings.RESTCLIENTS_CATALYST_CERT_FILE)

        else:
             Live.pool = get_con_pool(host)

        if hasattr(settings, "RESTCLIENTS_CATALYST_SOL_AUTH_PRIVATE_KEY"):
            # Use js_rest instead of rest, to avoid certificate issues
            url = url.replace("/rest/", "/js_rest/")
            now_with_tz = datetime.datetime.now(pytz.utc).strftime(
                "%a %b %d %H:%M:%S %Z %Y")
            header_base = "%s\nGET\n%s\n%s\n" % (
                settings.RESTCLIENTS_CATALYST_SOL_AUTH_PRIVATE_KEY,
                url,
                now_with_tz
            )

            public_key = settings.RESTCLIENTS_CATALYST_SOL_AUTH_PUBLIC_KEY
            hashed = hashlib.sha1(header_base).hexdigest()
            headers["Authorization"] = "SolAuth %s:%s" % (public_key, hashed)
            headers["Date"] = now_with_tz

        return get_live_url(Live.pool, "GET", host, url, headers=headers)
コード例 #3
0
ファイル: bridge.py プロジェクト: uw-it-aca/uw-restclients
 def set_pool(self):
     if Live.pool is None or Live.host is None:
         Live.host = settings.RESTCLIENTS_BRIDGE_HOST
         Live.pool = get_con_pool(Live.host,
                                  verify_https=True,
                                  max_pool_size=BRIDGE_MAX_POOL_SIZE,
                                  socket_timeout=BRIDGE_SOCKET_TIMEOUT)
コード例 #4
0
ファイル: o365.py プロジェクト: uw-it-aca/uw-restclients
 def _get_pool(self, host):
     socket_timeout = 15  # default values
     if hasattr(settings, "RESTCLIENTS_O365_SOCKET_TIMEOUT"):
         socket_timeout = settings.RESTCLIENTS_O365_SOCKET_TIMEOUT
     return get_con_pool(host,
                         verify_https=Live.verify_https,
                         socket_timeout=socket_timeout)
コード例 #5
0
ファイル: book.py プロジェクト: jeffFranklin/uw-restclients
 def getURL(self, url, headers):
     host = 'http://www3.bookstore.washington.edu/'
     if Live.pool == None:
         Live.pool = get_con_pool(host, None, None)
     return get_live_url (Live.pool, 'GET',
                          host, url, headers=headers,
                          service_name='book')
コード例 #6
0
    def getURL(self, url, headers):
        host = settings.RESTCLIENTS_R25_HOST

        if Live.pool is None:
            Live.pool = get_con_pool(host)

        return get_live_url(Live.pool, "GET", host, url, headers=headers)
コード例 #7
0
 def pool(self):
     if Live._pool is None:
         Live._pool = get_con_pool(settings.RESTCLIENTS_IRWS_HOST,
                                   settings.RESTCLIENTS_IRWS_KEY_FILE,
                                   settings.RESTCLIENTS_IRWS_CERT_FILE,
                                   max_pool_size=IRWS_MAX_POOL_SIZE)
     return Live._pool
コード例 #8
0
ファイル: canvas.py プロジェクト: UWIT-IAM/uw-restclients
 def _get_pool(self):
     host = settings.RESTCLIENTS_CANVAS_HOST
     socket_timeout = 15  # default values
     if hasattr(settings, "RESTCLIENTS_CANVAS_SOCKET_TIMEOUT"):
         socket_timeout = settings.RESTCLIENTS_CANVAS_SOCKET_TIMEOUT
     return get_con_pool(host,
                         verify_https=Live.verify_https,
                         socket_timeout=socket_timeout)
コード例 #9
0
ファイル: mailman.py プロジェクト: uw-it-aca/uw-restclients
 def set_pool(self):
     if Live.host is None:
         Live.host = settings.RESTCLIENTS_MAILMAN_HOST
     if Live.pool is None:
         Live.pool = get_con_pool(
             Live.host,
             max_pool_size=MAILMAN_MAX_POOL_SIZE,
             socket_timeout=get_timeout('mailman'))
コード例 #10
0
ファイル: client.py プロジェクト: uw-it-aca/mdot
    def getURL(self, url, headers):
        if MDOTLive.pool is None:
            MDOTLive.pool = get_con_pool(settings.RESTCLIENTS_MDOT_HOST)

        return get_live_url(MDOTLive.pool, 'GET',
                            settings.RESTCLIENTS_MDOT_HOST,
                            url,
                            headers=headers,
                            service_name='mdot')
コード例 #11
0
ファイル: client.py プロジェクト: uw-it-aca/canvas-eos-import
    def getURL(self, url, headers):
        eos_host = getattr(settings, 'RESTCLIENTS_EOS_HOST', None)
        if eos_host:
            if EOS_DAO.pool is None:
                EOS_DAO.pool = get_con_pool(eos_host)

            return get_live_url(EOS_DAO.pool, 'GET', eos_host, url,
                                headers=headers, service_name='eos')

        return get_mockdata_url('eos', 'file', url, headers)
コード例 #12
0
    def getURL(self, url, headers, subdomain):
        host = self._get_host(subdomain)

        if subdomain not in Live.pool:
            Live.pool[subdomain] = get_con_pool(host,
                key_file=settings.RESTCLIENTS_IASYSTEM_KEY_FILE,
                cert_file=settings.RESTCLIENTS_IASYSTEM_CERT_FILE)

        return get_live_url(Live.pool[subdomain], "GET", host, url, headers=headers,
                            service_name="iasystem")
コード例 #13
0
ファイル: pws.py プロジェクト: jeffFranklin/uw-restclients
 def getURL(self, url, headers):
     if Live.pool == None:
         Live.pool = get_con_pool(settings.RESTCLIENTS_PWS_HOST,
                                  settings.RESTCLIENTS_PWS_KEY_FILE,
                                  settings.RESTCLIENTS_PWS_CERT_FILE,
                                  max_pool_size= PWS_MAX_POOL_SIZE)
     return get_live_url(Live.pool, 'GET',
                         settings.RESTCLIENTS_PWS_HOST,
                         url, headers=headers,
                         service_name='pws')
コード例 #14
0
    def getURL(self, url, headers):
        if Live.pool is None:
            Live.pool = get_con_pool(
                settings.RESTCLIENTS_LIBCURRICS_HOST,
                max_pool_size=LIB_MAX_POOL_SIZE)

        return get_live_url(Live.pool,
                            'GET',
                            settings.RESTCLIENTS_LIBCURRICS_HOST,
                            url,
                            headers=headers,
                            service_name='libcurrics')
コード例 #15
0
 def getURL(self, url, headers):
     if Live.pool is None:
         Live.pool = get_con_pool(settings.RESTCLIENTS_PWS_HOST,
                                  settings.RESTCLIENTS_PWS_KEY_FILE,
                                  settings.RESTCLIENTS_PWS_CERT_FILE,
                                  max_pool_size=PWS_MAX_POOL_SIZE)
     return get_live_url(Live.pool,
                         'GET',
                         settings.RESTCLIENTS_PWS_HOST,
                         url,
                         headers=headers,
                         service_name='pws')
コード例 #16
0
ファイル: sws.py プロジェクト: uw-it-cte/uw-restclients
    def putURL(self, url, headers, body):
        if Live.pool is None:
            Live.pool = get_con_pool(settings.RESTCLIENTS_SWS_HOST,
                                     settings.RESTCLIENTS_SWS_KEY_FILE,
                                     settings.RESTCLIENTS_SWS_CERT_FILE,
                                     max_pool_size=SWS_MAX_POOL_SIZE,
                                     socket_timeout=get_timeout('sws'))

        return get_live_url(Live.pool, 'PUT',
                            settings.RESTCLIENTS_SWS_HOST,
                            url, headers=headers, body=body,
                            service_name='sws')
コード例 #17
0
 def getURL(self, url, headers):
     if Live.pool is None:
         Live.pool = get_con_pool(settings.RESTCLIENTS_HFS_HOST,
                                  settings.RESTCLIENTS_HFS_KEY_FILE,
                                  settings.RESTCLIENTS_HFS_CERT_FILE,
                                  max_pool_size=HFS_MAX_POOL_SIZE,
                                  socket_timeout=HFS_SOCKET_TIMEOUT)
     return get_live_url(Live.pool,
                         'GET',
                         settings.RESTCLIENTS_HFS_HOST,
                         url,
                         headers=headers,
                         service_name='hfs')
コード例 #18
0
 def getURL(self, url, headers):
     if Live.pool is None:
         Live.pool = get_con_pool(
             settings.RESTCLIENTS_LIBRARIES_HOST,
             settings.RESTCLIENTS_LIBRARIES_KEY_FILE,
             settings.RESTCLIENTS_LIBRARIES_CERT_FILE,
             max_pool_size=LIB_MAX_POOL_SIZE)
     return get_live_url(Live.pool,
                         'GET',
                         settings.RESTCLIENTS_LIBRARIES_HOST,
                         url,
                         headers=headers,
                         service_name='libraries')
コード例 #19
0
ファイル: myplan.py プロジェクト: jeffFranklin/uw-restclients
 def getURL(self, url, headers):
     if Live.pool is None:
         Live.pool = get_con_pool(
             settings.RESTCLIENTS_MYPLAN_HOST,
             settings.RESTCLIENTS_MYPLAN_KEY_FILE,
             settings.RESTCLIENTS_MYPLAN_CERT_FILE,
             max_pool_size=MAX_POOL_SIZE)
     return get_live_url(Live.pool,
                         'GET',
                         HOST,
                         url,
                         headers=headers,
                         service_name='myplan')
コード例 #20
0
ファイル: sws.py プロジェクト: UWIT-IAM/uw-restclients
    def putURL(self, url, headers, body):
        if Live.pool is None:
            Live.pool = get_con_pool(settings.RESTCLIENTS_SWS_HOST,
                                     settings.RESTCLIENTS_SWS_KEY_FILE,
                                     settings.RESTCLIENTS_SWS_CERT_FILE,
                                     max_pool_size=SWS_MAX_POOL_SIZE)

        return get_live_url(Live.pool,
                            'PUT',
                            settings.RESTCLIENTS_SWS_HOST,
                            url,
                            headers=headers,
                            body=body,
                            service_name='sws')
コード例 #21
0
ファイル: grad.py プロジェクト: uw-it-aca/uw-restclients
 def getURL(self, url, headers):
     if Live.pool is None:
         Live.pool = get_con_pool(
             settings.RESTCLIENTS_GRAD_HOST,
             settings.RESTCLIENTS_GRAD_KEY_FILE,
             settings.RESTCLIENTS_GRAD_CERT_FILE,
             max_pool_size=GRAD_MAX_POOL_SIZE,
             socket_timeout=get_timeout("grad"))
     return get_live_url(Live.pool,
                         'GET',
                         settings.RESTCLIENTS_GRAD_HOST,
                         url,
                         headers=headers,
                         service_name='grad')
コード例 #22
0
 def getURL(self, url, headers):
     if Live.pool is None:
         Live.pool = get_con_pool(
             settings.RESTCLIENTS_UWNETID_HOST,
             settings.RESTCLIENTS_UWNETID_KEY_FILE,
             settings.RESTCLIENTS_UWNETID_CERT_FILE,
             max_pool_size=UWNETID_MAX_POOL_SIZE,
             socket_timeout=UWNETID_SOCKET_TIMEOUT)
     return get_live_url(Live.pool,
                         'GET',
                         settings.RESTCLIENTS_UWNETID_HOST,
                         url,
                         headers=headers,
                         service_name='uwnetid')
コード例 #23
0
ファイル: upass.py プロジェクト: uw-it-aca/uw-restclients
 def getURL(self, url, headers):
     if Live.pool is None:
         Live.pool = get_con_pool(
             settings.RESTCLIENTS_UPASS_HOST,
             settings.RESTCLIENTS_UPASS_KEY_FILE,
             settings.RESTCLIENTS_UPASS_CERT_FILE,
             max_pool_size=MAX_POOL_SIZE,
             socket_timeout=get_timeout('upass'))
     return get_live_url(Live.pool,
                         'GET',
                         settings.RESTCLIENTS_UPASS_HOST,
                         url,
                         headers=headers,
                         service_name='upass')
コード例 #24
0
ファイル: uwnetid.py プロジェクト: uw-it-aca/uw-restclients
 def postURL(self, url, headers, body):
     if Live.pool is None:
         Live.pool = get_con_pool(
             settings.RESTCLIENTS_UWNETID_HOST,
             settings.RESTCLIENTS_UWNETID_KEY_FILE,
             settings.RESTCLIENTS_UWNETID_CERT_FILE,
             max_pool_size=UWNETID_MAX_POOL_SIZE,
             socket_timeout=get_timeout('uwnetid'))
     return get_live_url(Live.pool,
                         'POST',
                         settings.RESTCLIENTS_UWNETID_HOST,
                         url,
                         headers=headers,
                         body=body,
                         service_name='uwnetid')
コード例 #25
0
ファイル: digitlib.py プロジェクト: UWIT-IAM/uw-restclients
 def getURL(self, url, headers):
     if Live.pool is None:
         Live.pool = get_con_pool(settings.RESTCLIENTS_DIGITLIB_HOST,
                                  settings.RESTCLIENTS_DIGITLIB_KEY_FILE,
                                  settings.RESTCLIENTS_DIGITLIB_CERT_FILE,
                                  max_pool_size=DIGITLIB_MAX_POOL_SIZE,
                                  socket_timeout=DIGITLIB_SOCKET_TIMEOUT)
     redirect = getattr(settings, "RESTCLIENTS_DIGITLIB_REDIRECT", True)
     return get_live_url(Live.pool,
                         'GET',
                         settings.RESTCLIENTS_DIGITLIB_HOST,
                         url,
                         headers=headers,
                         redirect=redirect,
                         service_name='digitlib')
コード例 #26
0
ファイル: mylibinfo.py プロジェクト: UWIT-IAM/uw-restclients
    def getURL(self, url, headers):
        if Live.pool is None:
            Live.pool = get_con_pool(settings.RESTCLIENTS_LIBRARIES_HOST,
                                     settings.RESTCLIENTS_LIBRARIES_KEY_FILE,
                                     settings.RESTCLIENTS_LIBRARIES_CERT_FILE,
                                     max_pool_size=LIB_MAX_POOL_SIZE)

        # For rest router...
        url_prefix = getattr(settings, "RESTCLIENTS_LIBRARIES_PREFIX", "")
        url = "%s%s" % (url_prefix, url)
        return get_live_url(Live.pool,
                            'GET',
                            settings.RESTCLIENTS_LIBRARIES_HOST,
                            url,
                            headers=headers,
                            service_name='libraries')
コード例 #27
0
    def getURL(self, url, headers):
        host = getattr(settings,
                       "RESTCLIENTS_BOOKSTORE_HOST",
                       'http://www3.bookstore.washington.edu/')
        if Live.pool is None:
            cert = getattr(settings, "RESTCLIENTS_BOOKSTORE_CERT", None)
            key = getattr(settings, "RESTCLIENTS_BOOKSTORE_KEY", None)
            Live.pool = get_con_pool(host, key, cert)

        # For rest router...
        url_prefix = getattr(settings, "RESTCLIENTS_BOOKSTORE_PREFIX", "")
        url = "%s%s" % (url_prefix, url)

        return get_live_url(Live.pool, 'GET',
                            host, url, headers=headers,
                            service_name='book')
コード例 #28
0
ファイル: book.py プロジェクト: uw-it-cte/uw-restclients
    def getURL(self, url, headers):
        host = getattr(settings,
                       "RESTCLIENTS_BOOKSTORE_HOST",
                       'http://www3.bookstore.washington.edu/')
        if Live.pool is None:
            cert = getattr(settings, "RESTCLIENTS_BOOKSTORE_CERT", None)
            key = getattr(settings, "RESTCLIENTS_BOOKSTORE_KEY", None)
            Live.pool = get_con_pool(host, key, cert)

        # For rest router...
        url_prefix = getattr(settings, "RESTCLIENTS_BOOKSTORE_PREFIX", "")
        url = "%s%s" % (url_prefix, url)

        return get_live_url(Live.pool, 'GET',
                            host, url, headers=headers,
                            service_name='book',
                            socket_timeout=get_timeout("book"))
コード例 #29
0
ファイル: sws.py プロジェクト: uw-it-cte/uw-restclients
    def getURL(self, url, headers):
        bearer_key = getattr(settings, 'RESTCLIENTS_SWS_OAUTH_BEARER', None)
        if bearer_key is not None:
            headers["Authorization"] = "Bearer %s" % bearer_key

        if Live.pool is None:
            Live.pool = get_con_pool(settings.RESTCLIENTS_SWS_HOST,
                                     settings.RESTCLIENTS_SWS_KEY_FILE if (
                                         bearer_key is None) else None,
                                     settings.RESTCLIENTS_SWS_CERT_FILE if (
                                         bearer_key is None) else None,
                                     max_pool_size=SWS_MAX_POOL_SIZE,
                                     socket_timeout=get_timeout('sws'))

        return get_live_url(Live.pool, 'GET',
                            settings.RESTCLIENTS_SWS_HOST,
                            url, headers=headers,
                            service_name='sws')
コード例 #30
0
 def getURL(self, url, headers):
     if Live.pool is None:
         Live.pool = get_con_pool(
             settings.RESTCLIENTS_DIGITLIB_HOST,
             settings.RESTCLIENTS_DIGITLIB_KEY_FILE,
             settings.RESTCLIENTS_DIGITLIB_CERT_FILE,
             max_pool_size=DIGITLIB_MAX_POOL_SIZE,
             socket_timeout=DIGITLIB_SOCKET_TIMEOUT)
     redirect = getattr(settings, 
                        "RESTCLIENTS_DIGITLIB_REDIRECT",
                        True)
     return get_live_url(Live.pool,
                         'GET',
                         settings.RESTCLIENTS_DIGITLIB_HOST,
                         url,
                         headers=headers,
                         redirect=redirect,
                         service_name='digitlib')
コード例 #31
0
ファイル: mylibinfo.py プロジェクト: uw-it-cte/uw-restclients
    def getURL(self, url, headers):
        if Live.pool is None:
            Live.pool = get_con_pool(
                settings.RESTCLIENTS_LIBRARIES_HOST,
                settings.RESTCLIENTS_LIBRARIES_KEY_FILE,
                settings.RESTCLIENTS_LIBRARIES_CERT_FILE,
                max_pool_size=LIB_MAX_POOL_SIZE,
                socket_timeout=get_timeout('library'))

        # For rest router...
        url_prefix = getattr(settings, "RESTCLIENTS_LIBRARIES_PREFIX", "")
        url = "%s%s" % (url_prefix, url)
        return get_live_url(Live.pool,
                            'GET',
                            settings.RESTCLIENTS_LIBRARIES_HOST,
                            url,
                            headers=headers,
                            service_name='libraries')
コード例 #32
0
ファイル: sws.py プロジェクト: UWIT-IAM/uw-restclients
    def getURL(self, url, headers):
        bearer_key = getattr(settings, 'RESTCLIENTS_SWS_OAUTH_BEARER', None)
        if bearer_key is not None:
            headers["Authorization"] = "Bearer %s" % bearer_key

        if Live.pool is None:
            Live.pool = get_con_pool(settings.RESTCLIENTS_SWS_HOST,
                                     settings.RESTCLIENTS_SWS_KEY_FILE if
                                     (bearer_key is None) else None,
                                     settings.RESTCLIENTS_SWS_CERT_FILE if
                                     (bearer_key is None) else None,
                                     max_pool_size=SWS_MAX_POOL_SIZE)

        return get_live_url(Live.pool,
                            'GET',
                            settings.RESTCLIENTS_SWS_HOST,
                            url,
                            headers=headers,
                            service_name='sws')
コード例 #33
0
ファイル: nws.py プロジェクト: jeffFranklin/uw-restclients
    def _get_pool(self):
        nws_key_file = None
        nws_cert_file = None
        max_pool_size = 10 #default values
        socket_timeout = 15 #default values

        if settings.RESTCLIENTS_NWS_KEY_FILE and settings.RESTCLIENTS_NWS_CERT_FILE:
            nws_key_file = settings.RESTCLIENTS_NWS_KEY_FILE
            nws_cert_file = settings.RESTCLIENTS_NWS_CERT_FILE

        if hasattr(settings, "RESTCLIENTS_NWS_MAX_POOL_SIZE"):
            max_pool_size = settings.RESTCLIENTS_NWS_MAX_POOL_SIZE
        if hasattr(settings, "RESTCLIENTS_NWS_SOCKET_TIMEOUT"):
            socket_timeout = settings.RESTCLIENTS_NWS_SOCKET_TIMEOUT

        return get_con_pool(settings.RESTCLIENTS_NWS_HOST,
                                     nws_key_file,
                                     nws_cert_file,
                                     max_pool_size=max_pool_size,
                                     socket_timeout=socket_timeout)
コード例 #34
0
ファイル: iasystem.py プロジェクト: UWIT-IAM/uw-restclients
    def getURL(self, url, headers, subdomain):
        host = self._get_host(subdomain)

        if subdomain not in Live.pool:
            Live.pool[subdomain] = get_con_pool(
                host,
                key_file=settings.RESTCLIENTS_IASYSTEM_KEY_FILE,
                cert_file=settings.RESTCLIENTS_IASYSTEM_CERT_FILE,
                socket_timeout=getattr(settings,
                                       "RESTCLIENTS_IASYSTEM_SOCKET_TIMEOUT",
                                       IAS_SOCKET_TIMEOUT),
                max_pool_size=getattr(settings,
                                      "RESTCLIENTS_IASYSTEM_MAX_POOL_SIZE",
                                      IAS_MAX_POOL_SIZE))

        return get_live_url(Live.pool[subdomain],
                            "GET",
                            host,
                            url,
                            headers=headers,
                            service_name="iasystem")
コード例 #35
0
ファイル: nws.py プロジェクト: UWIT-IAM/uw-restclients
    def _get_pool(self):
        nws_key_file = None
        nws_cert_file = None
        max_pool_size = 10  # default values
        socket_timeout = 15  # default values

        if settings.RESTCLIENTS_NWS_KEY_FILE and \
                settings.RESTCLIENTS_NWS_CERT_FILE:
            nws_key_file = settings.RESTCLIENTS_NWS_KEY_FILE
            nws_cert_file = settings.RESTCLIENTS_NWS_CERT_FILE

        if hasattr(settings, "RESTCLIENTS_NWS_MAX_POOL_SIZE"):
            max_pool_size = settings.RESTCLIENTS_NWS_MAX_POOL_SIZE
        if hasattr(settings, "RESTCLIENTS_NWS_SOCKET_TIMEOUT"):
            socket_timeout = settings.RESTCLIENTS_NWS_SOCKET_TIMEOUT

        return get_con_pool(settings.RESTCLIENTS_NWS_HOST,
                            nws_key_file,
                            nws_cert_file,
                            max_pool_size=max_pool_size,
                            socket_timeout=socket_timeout)
コード例 #36
0
ファイル: gws.py プロジェクト: UWIT-IAM/uw-restclients
 def _get_pool(self):
     return get_con_pool(settings.RESTCLIENTS_GWS_HOST,
                         settings.RESTCLIENTS_GWS_KEY_FILE,
                         settings.RESTCLIENTS_GWS_CERT_FILE,
                         max_pool_size=GWS_MAX_POOL_SIZE)
コード例 #37
0
ファイル: trumba.py プロジェクト: jeffFranklin/uw-restclients
 def set_pool():
     if LiveSea.pool is None:
         LiveSea.pool = get_con_pool(settings.RESTCLIENTS_TRUMBA_HOST,
                                     None, None)
コード例 #38
0
ファイル: trumba.py プロジェクト: jeffFranklin/uw-restclients
 def _get_pool(self):
     return get_con_pool(CalendarLive.TRUMBA_HOST,
                         max_pool_size = CalendarLive.MAX_POOL_SIZE)
コード例 #39
0
ファイル: gws.py プロジェクト: jeffFranklin/uw-restclients
 def _get_pool(self):
     return get_con_pool(settings.RESTCLIENTS_GWS_HOST,
                         settings.RESTCLIENTS_GWS_KEY_FILE,
                         settings.RESTCLIENTS_GWS_CERT_FILE,
                         max_pool_size = GWS_MAX_POOL_SIZE)
コード例 #40
0
ファイル: trumba.py プロジェクト: uw-it-aca/uw-restclients
 def _get_pool(self):
     return get_con_pool(CalendarLive.TRUMBA_HOST,
                         max_pool_size=CalendarLive.MAX_POOL_SIZE,
                         socket_timeout=get_timeout('trumba'))
コード例 #41
0
ファイル: trumba.py プロジェクト: uw-it-aca/uw-restclients
 def set_pool():
     if LiveSea.pool is None:
         LiveSea.pool = get_con_pool(settings.RESTCLIENTS_TRUMBA_HOST,
                                     None, None,
                                     socket_timeout=get_timeout('trumba'))