Example #1
0
 def __init__(self, configfile, verbose=0):
     "Main module"
     self.config = parse_config(configfile)
     self.storage = StorageManager(self.config)
     self.sitedb = SiteDBService(self.config, verbose)
     self.dbs = DBSService(self.config, verbose)
     self.popdb = PopDBService(self.config, verbose)
     self.phedex = PhedexService(self.config, verbose)
     self.dashboard = DashboardService(self.config, verbose)
     self.salt = self.config.get('core', {}).get('salt', 'secret sauce')
     self.verbose = verbose
     self.multitask = self.config.get('core', {}).get('multitask', False)
     self.queue = mp.Queue()
     if  verbose:
         print("DCAF multitask", self.multitask)
Example #2
0
 def __init__(self, configfile, verbose=0):
     "Main module"
     self.config = parse_config(configfile)
     self.storage = StorageManager(self.config)
     self.sitedb = SiteDBService(self.config, verbose)
     self.dbs = DBSService(self.config, verbose)
     self.popdb = PopDBService(self.config, verbose)
     self.phedex = PhedexService(self.config, verbose)
     self.dashboard = DashboardService(self.config, verbose)
     self.salt = self.config.get('core', {}).get('salt', 'secret sauce')
     self.verbose = verbose
     self.multitask = self.config.get('core', {}).get('multitask', False)
     self.queue = mp.Queue()
     if verbose:
         print("DCAF multitask", self.multitask)
def main():
    "Main function"
    optmgr = OptionParser()
    opts, _ = optmgr.get_opt()
    config = parse_config(opts.config)
    convert(config, opts.sep, opts.sort)
Example #4
0
def main():
    "Main function"
    optmgr = OptionParser()
    opts, _ = optmgr.get_opt()
    config = parse_config(opts.config)
    convert(config, opts.sep, opts.sort)