Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/j/u/JumpScale-core-6.0.0/lib/JumpScale/baselib/blobstor/BlobStor.py   JumpScale-core(Download)
from JumpScale import j
from JumpScale.core.baseclasses import BaseEnumeration
from BlobStorConfigManagement import BlobStorConfigManagement
 
class BlobType(BaseEnumeration):
    def loadConfig(self):
        config = BlobStorConfigManagement()
        if self.name not in config.list():
            raise RuntimeError("Cannot find blobstor connection with name %s" % self.name)
        else: