Exemple #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.')
Exemple #3
0
 def query(self, query):
     BLOBHoster.query(self)
Exemple #4
0
 def query(self, query):
     BLOBHoster.query(self)
     
Exemple #5
0
 def delete(self, handle):
     BLOBHoster.delete(self)
Exemple #6
0
 def save(self, blob, filename=None):
     BLOBHoster.save(self)
Exemple #7
0
 def list(self):
     BLOBHoster.list(self)
Exemple #8
0
 def get(self, handle):
     BLOBHoster.get(self)
Exemple #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)
Exemple #10
0
 def delete(self, handle):
     BLOBHoster.delete(self)
Exemple #11
0
 def save(self, blob, filename=None):
     BLOBHoster.save(self)
Exemple #12
0
 def list(self):
     BLOBHoster.list(self)
Exemple #13
0
 def get(self, handle):
     BLOBHoster.get(self)
Exemple #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)