Source code for fdi.pal.httppool

# -*- coding: utf-8 -*-


from .localpool import LocalPool


import sys

from os import path as op
import logging
# create logger
logger = logging.getLogger(__name__)
# logger.debug('level %d' %  (logger.getEffectiveLevel()))

if sys.version_info[0] >= 3:  # + 0.1 * sys.version_info[1] >= 3.3:
    PY3 = True
    strset = str
    from urllib.parse import urlparse, quote, unquote
else:
    PY3 = False
    strset = (str, unicode)
    from urlparse import urlparse, quote, unquote


[docs]class HttpPool(LocalPool): """ the pool will save all products locally on the host Http server. """
[docs] def __init__(self, **kwds): """ creates file structure if there isn't one. if there is, read and populate house-keeping records. create persistent files if not exist. """ # print(__name__ + str(kwds)) super().__init__(**kwds)