def __init__(self, session, config, parent): SimpleDocumentFactory.__init__(self, session, config, parent) self.database = self.get_setting(session, 'databaseName', '') self.host = self.get_setting(session, 'host', 'localhost') self.port = int(self.get_setting(session, 'port', '5432'))
"""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_])
def get_document(self, session, n=-1): if self.previousIdx == -1: self.generator = self.prepareReport(session) return SimpleDocumentFactory.get_document(self, session, n)
__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)
__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)
"""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_])