def __init__(self,
              operation='searchRetrieve',
              version='1.2',
              recordSchema=None,
              **kwargs):
     Transparent.__init__(self, **kwargs)
     self._defaults = dict(operation=[operation], version=[version])
     if recordSchema:
         self._defaults['recordSchema'] = [recordSchema]
Exemplo n.º 2
0
 def __init__(self,
              cacheTimeout=1 * 60 * 60,
              returnCachedValueInCaseOfException=False,
              backoffTimeout=None,
              **kwargs):
     Transparent.__init__(self, **kwargs)
     self._cache = TimedDictionary(timeout=cacheTimeout)
     self._returnCachedValueInCaseOfException = returnCachedValueInCaseOfException
     self._backoffTimeout = backoffTimeout
     self._backoffStarted = None
Exemplo n.º 3
0
 def __init__(self, namespaces=None, inlineDescriptions=False, knownTypes=None, relativeTypePositions=None, **kwargs):
     Transparent.__init__(self, **kwargs)
     namespaces=namespaces or defaultNamespaces
     self._Triples2RdfXml = partial(_Triples2RdfXml,
         namespaces=namespaces,
         createElement=partial(_createElement, namespaces=namespaces),
         createSubElement=partial(_createSubElement, namespaces=namespaces),
         inlineDescriptions=inlineDescriptions,
         nodePromotedTypes=dict((namespaces.curieToUri(t), t) for t in (NODE_PROMOTED_TYPES.union(knownTypes or []))),
         relativeTypePositions=dict(RELATIVE_TYPE_POSITIONS, **(relativeTypePositions or {}))
     )
Exemplo n.º 4
0
 def __init__(self, **kwargs):
     Transparent.__init__(self, **kwargs)
     self._convertDict = {}
Exemplo n.º 5
0
 def __init__(self, combinations, allowMissingParts=None):
     Transparent.__init__(self)
     self._combinations = combinations
     self._allowMissingParts = allowMissingParts or []
Exemplo n.º 6
0
 def __init__(self, rename):
     Transparent.__init__(self)
     self._rename = rename
 def __init__(self, method):
     Transparent.__init__(self)
     self._method = method
Exemplo n.º 8
0
 def __init__(self, cacheTimeout=1*60*60, returnCachedValueInCaseOfException=False, backoffTimeout=None, **kwargs):
     Transparent.__init__(self, **kwargs)
     self._cache = TimedDictionary(timeout=cacheTimeout)
     self._returnCachedValueInCaseOfException = returnCachedValueInCaseOfException
     self._backoffTimeout = backoffTimeout
     self._backoffStarted = None
Exemplo n.º 9
0
 def __init__(self, setsMask, name=None):
     Transparent.__init__(self, name=name)
     self._setsMask = set(setsMask)
Exemplo n.º 10
0
 def __init__(self, repository=None, preciseDatestamp=False, **kwargs):
     Transparent.__init__(self, **kwargs)
     self._repository = repository
     self._preciseDatestamp = preciseDatestamp
Exemplo n.º 11
0
 def __init__(self, repository=None, preciseDatestamp=False, **kwargs):
     Transparent.__init__(self, **kwargs)
     self._repository = repository
     self._preciseDatestamp = preciseDatestamp
Exemplo n.º 12
0
 def __init__(self, setsList):
     warn(
         "OaiSetSelect is deprecated; you probably need OaiSetMask instead.",
         DeprecationWarning)
     Transparent.__init__(self)
     self._setsList = setsList
 def __init__(self, partname):
     Transparent.__init__(self)
     self._partname = partname
Exemplo n.º 14
0
 def __init__(self, log, loggedPaths):
     Transparent.__init__(self)
     self._log = log
     self._loggedPaths = loggedPaths
Exemplo n.º 15
0
 def __init__(self, notFoundMethod=None):
     Transparent.__init__(self)
     self.notFound = self._notFound if notFoundMethod is None else notFoundMethod
 def __init__(self):
     Transparent.__init__(self)
     self._namespaceEnum = NamespaceEnum()
Exemplo n.º 17
0
 def __init__(self, notFoundMethod=None, additionalHeaders=None):
     Transparent.__init__(self)
     self.notFound = self._notFound if notFoundMethod is None else notFoundMethod
     self._additionalHeaders = {} if additionalHeaders is None else additionalHeaders
Exemplo n.º 18
0
 def __init__(self, metadataFormats=None):
     Transparent.__init__(self)
     self._metadataFormats = metadataFormats if metadataFormats else []
Exemplo n.º 19
0
 def __init__(self, rename):
     Transparent.__init__(self)
     self._rename = rename
Exemplo n.º 20
0
 def __init__(self, combinations, allowMissingParts=None):
     Transparent.__init__(self)
     self._combinations = combinations
     self._allowMissingParts = allowMissingParts or []
Exemplo n.º 21
0
 def __init__(self, defaultCore, coreConverters, **kwargs):
     Transparent.__init__(self, **kwargs)
     self._defaultCore = defaultCore
     self._converts = dict(coreConverters)
Exemplo n.º 22
0
 def __init__(self, unqualifiedFields, name=None, **kwargs):
     Transparent.__init__(self, name=name)
     self._additionalKwargs = kwargs
     self.updateUnqualifiedFields(unqualifiedFields)
 def __init__(self, translate):
     Transparent.__init__(self)
     self.translate = translate
Exemplo n.º 24
0
 def __init__(self, unqualifiedFields, name=None, **kwargs):
     Transparent.__init__(self, name=name)
     self._additionalKwargs = kwargs
     self.updateUnqualifiedFields(unqualifiedFields)
Exemplo n.º 25
0
 def __init__(self, setsMask, name=None):
     Transparent.__init__(self, name=name)
     self._setsMask = set(setsMask)
Exemplo n.º 26
0
 def __init__(self, setsList):
     warn("OaiSetSelect is deprecated; you probably need OaiSetMask instead.", DeprecationWarning)
     Transparent.__init__(self)
     self._setsList = setsList
Exemplo n.º 27
0
 def __init__(self, method):
     Transparent.__init__(self)
     self._method = method
Exemplo n.º 28
0
 def __init__(self, defaultCore, coreConverters, **kwargs):
     Transparent.__init__(self, **kwargs)
     self._defaultCore = defaultCore
     self._converts = dict(coreConverters)
Exemplo n.º 29
0
 def __init__(self, notFoundMethod=None, additionalHeaders=None):
     Transparent.__init__(self)
     self.notFound = self._notFound if notFoundMethod is None else notFoundMethod
     self._additionalHeaders = {} if additionalHeaders is None else additionalHeaders
 def __init__(self, xpath):
     Transparent.__init__(self)
     self._xpath = xpath
Exemplo n.º 31
0
 def __init__(self, notFoundMethod=None):
     Transparent.__init__(self)
     self.notFound = self._notFound if notFoundMethod is None else notFoundMethod
Exemplo n.º 32
0
 def __init__(self, metadataPrefixes=None, name=None):
     Transparent.__init__(self, name=name)
     self._metadataPrefixes = metadataPrefixes if metadataPrefixes else []
Exemplo n.º 33
0
 def __init__(self, partname):
     Transparent.__init__(self)
     self._partname = partname
Exemplo n.º 34
0
 def __init__(self, outputStream=DevNull()):
     Transparent.__init__(self)
     self._outputStream = outputStream
Exemplo n.º 35
0
 def __init__(self, metadataPrefixes=None, setSpecs=None, name=None):
     Transparent.__init__(self, name=name)
     self._setSpecs = _prepare(setSpecs)
     self._metadataPrefixes = _prepare(metadataPrefixes)
Exemplo n.º 36
0
 def __init__(self, translate):
     Transparent.__init__(self)
     self.translate = translate
Exemplo n.º 37
0
 def __init__(self, log, loggedPaths):
     Transparent.__init__(self)
     self._log = log
     self._loggedPaths = loggedPaths
Exemplo n.º 38
0
 def __init__(self, outputStream=DevNull()):
     Transparent.__init__(self)
     self._outputStream = outputStream
 def __init__(self, operation='searchRetrieve', version='1.2', recordSchema=None, **kwargs):
     Transparent.__init__(self, **kwargs)
     self._defaults = dict(operation=[operation], version=[version])
     if recordSchema:
         self._defaults['recordSchema'] = [recordSchema]
Exemplo n.º 40
0
 def __init__(self, metadataPrefixes=None, setSpecs=None, name=None):
     Transparent.__init__(self, name=name)
     self._setSpecs = _prepare(setSpecs)
     self._metadataPrefixes = _prepare(metadataPrefixes)
Exemplo n.º 41
0
 def __init__(self, repository=None, preciseDatestamp=False, deleteInSets=False, **kwargs):
     Transparent.__init__(self, **kwargs)
     self._repository = repository
     self._preciseDatestamp = preciseDatestamp
     self._deleteInSetsSupport = deleteInSets
Exemplo n.º 42
0
 def __init__(self, repository=None, preciseDatestamp=False, deleteInSets=False, **kwargs):
     Transparent.__init__(self, **kwargs)
     self._repository = repository
     self._preciseDatestamp = preciseDatestamp
     self._deleteInSetsSupport = deleteInSets
 def __init__(self, fromKwarg, fieldname, name=None):
     Transparent.__init__(self, name=name)
     self._fromKwarg = fromKwarg
     self._fieldname = fieldname
 def __init__(self, defaultCore, coreConverters, **kwargs):
     Transparent.__init__(self, **kwargs)
     self._defaultCore = defaultCore
     self._converts = {}
     for core, convert in coreConverters.items():
         self._converts[core] = convert