Esempio n. 1
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)
 def __init__(self, session, stream, format,
              tagName=None, codec=None, factory=None):
     IrodsStream.__init__(self, session, stream)
     FileDocumentStream.__init__(self, session, stream, format,
                                 tagName, codec, factory)
Esempio n. 3
0
 def __init__(self, session, stream, format,
              tagName=None, codec=None, factory=None):
     IrodsStream.__init__(self, session, stream)
     FileDocumentStream.__init__(self, session, stream, format,
                                 tagName, codec, factory)