def __init__(self,
              session,
              stream,
              format,
              tagName=None,
              codec=None,
              factory=None):
     MultipleDocumentStream.__init__(self, session, stream, format, tagName,
                                     codec, factory)
 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)
Exemple #3
0
 def __init__(self, session, stream, format, tagName=None, codec=None, factory=None ):
     MultipleDocumentStream.__init__(self, session, stream, format, tagName, codec, factory)