Example #1
0
 def __init__(self, BLOB_HOSTER_URI, BLOB_HOSTER_USER, BLOB_HOSTER_PSWD, MDCS_URI=None):
     BLOBHoster.__init__(self, BLOB_HOSTER_URI, BLOB_HOSTER_USER, BLOB_HOSTER_PSWD)        
     
     self.client = MongoClient(self.BLOB_HOSTER_URI)    
     self.db = self.client[MGI_DB]
     self.fs = gridfs.GridFS(self.db)
     
     if MDCS_URI is not None:   
         if len(MDCS_URI) > 0:
             if MDCS_URI[-1] != '/':
                 MDCS_URI = MDCS_URI + '/'
             self.uri = MDCS_URI
         else:
             raise ValueError('MDCS_URI is empty.')
     else:
         raise ValueError('MDCS_URI is not set.')
 def __init__(self, BLOB_HOSTER_URI, BLOB_HOSTER_USER, BLOB_HOSTER_PSWD, MDCS_URI=None):
     BLOBHoster.__init__(self, BLOB_HOSTER_URI, BLOB_HOSTER_USER, BLOB_HOSTER_PSWD)        
     
     self.client = MongoClient(self.BLOB_HOSTER_URI)    
     self.db = self.client[MGI_DB]
     self.fs = gridfs.GridFS(self.db)
     
     if MDCS_URI is not None:   
         if len(MDCS_URI) > 0:
             if MDCS_URI[-1] != '/':
                 MDCS_URI = MDCS_URI + '/'
             self.uri = MDCS_URI
         else:
             raise ValueError('MDCS_URI is empty.')
     else:
         raise ValueError('MDCS_URI is not set.')
Example #3
0
 def query(self, query):
     BLOBHoster.query(self)
Example #4
0
 def query(self, query):
     BLOBHoster.query(self)
     
Example #5
0
 def delete(self, handle):
     BLOBHoster.delete(self)
Example #6
0
 def save(self, blob, filename=None):
     BLOBHoster.save(self)
Example #7
0
 def list(self):
     BLOBHoster.list(self)
Example #8
0
 def get(self, handle):
     BLOBHoster.get(self)
Example #9
0
 def __init__(self, BLOB_HOSTER_URI, BLOB_HOSTER_USER, BLOB_HOSTER_PSWD):
     BLOBHoster.__init__(self, BLOB_HOSTER_URI, BLOB_HOSTER_USER, BLOB_HOSTER_PSWD)
Example #10
0
 def delete(self, handle):
     BLOBHoster.delete(self)
Example #11
0
 def save(self, blob, filename=None):
     BLOBHoster.save(self)
Example #12
0
 def list(self):
     BLOBHoster.list(self)
Example #13
0
 def get(self, handle):
     BLOBHoster.get(self)
Example #14
0
 def __init__(self, BLOB_HOSTER_URI, BLOB_HOSTER_USER, BLOB_HOSTER_PSWD):
     BLOBHoster.__init__(self, BLOB_HOSTER_URI, BLOB_HOSTER_USER,
                         BLOB_HOSTER_PSWD)