예제 #1
0
"""Cheshire3 support for the data grid.

Data grid (SRB and iRODS) support for Cheshire3 XML Search, Retrieval and
Information Analysis Engine.
"""

__all__ = [
    'mpiProtocolHandler', 'pvmProtocolHandler', 'documentFactory',
    'irodsStore', 'irods_utils', 'user', 'srbDocStream', 'srbErrors',
    'srbIndex', 'srbStore'
]

from cheshire3.documentFactory import SimpleDocumentFactory

from cheshire3.grid.documentFactory import streamHash

# Register sub-package streams with base Factories

# DocumentStreams
for format_ in streamHash:
    # register_stream is an @classmethod
    SimpleDocumentFactory.register_stream(format_, streamHash[format_])
예제 #2
0
__all__ = ['srwExtensions']

import cheshire3.web.srwExtensions

from cheshire3.documentFactory import SimpleDocumentFactory, AccumulatingDocumentFactory
from cheshire3.queryFactory import SimpleQueryFactory

from cheshire3.web.documentFactory import streamHash, accStreamHash
from cheshire3.web.queryFactory import streamHash as qStreams

# Register web sub-package streams base Factories

# DocumentStreams
for (k,v) in streamHash.items():
    # register_stream is an @classmethod
    SimpleDocumentFactory.register_stream(k, v)

# AccumulatingDocumentStreams 
for (k,v) in accStreamHash.items():
    # register_stream is an @classmethod
    AccumulatingDocumentFactory.register_stream(k, v)

# QueryStreams
for format, cls in qStreams.iteritems():
    # register_stream is an @classmethod
    SimpleQueryFactory.register_stream(format, cls)
예제 #3
0
__all__ = [
    'mpiProtocolHandler', 'pvmProtocolHandler', 'documentFactory',
    'irodsStore', 'irods_utils', 'user', 'srbDocStream', 'srbErrors',
    'srbIndex', 'srbStore'
]

# Register our streams with main docFac
# register_stream is an @classmethod
from cheshire3.grid.documentFactory import streamHash
from cheshire3.documentFactory import SimpleDocumentFactory
for (k, v) in streamHash.items():
    SimpleDocumentFactory.register_stream(k, v)
예제 #4
0
"""Cheshire3 support for the data grid.

Data grid (SRB and iRODS) support for Cheshire3 XML Search, Retrieval and
Information Analysis Engine.
"""

__all__ = [
    "mpiProtocolHandler",
    "pvmProtocolHandler",
    "documentFactory",
    "irodsStore",
    "irods_utils",
    "user",
    "srbDocStream",
    "srbErrors",
    "srbIndex",
    "srbStore",
]

from cheshire3.documentFactory import SimpleDocumentFactory

from cheshire3.grid.documentFactory import streamHash

# Register sub-package streams with base Factories

# DocumentStreams
for format_ in streamHash:
    # register_stream is an @classmethod
    SimpleDocumentFactory.register_stream(format_, streamHash[format_])