Ejemplo n.º 1
0
 def __init__(self,
              session,
              stream,
              format,
              tagName=None,
              codec=None,
              factory=None):
     MultipleDocumentStream.__init__(self, session, stream, format, tagName,
                                     codec, factory)
Ejemplo n.º 2
0
 def __init__(self, session, stream, format,
              tagName=None, codec=None, factory=None):
     IrodsStream.__init__(self, session, stream)
     # Check the stream location to init correct subclass
     fn = os.path.basename(stream)
     if fn in self.coll.getObjects():
         # Fake dynamic inheritance
         self.baseClass = IrodsFileDocumentStream
         FileDocumentStream.__init__(self, session, stream, format,
                                     tagName, codec, factory)
     else:
         # Fake dynamic inheritance
         self.baseClass = IrodsDirectoryDocumentStream
         MultipleDocumentStream.__init__(self, session, stream, format,
                                         tagName, codec, factory)
Ejemplo n.º 3
0
 def __init__(self, session, stream, format, tagName=None, codec=None, factory=None ):
     MultipleDocumentStream.__init__(self, session, stream, format, tagName, codec, factory)