def make_dbm():
try:<EOL><INDENT>data_dir = config.get('<STR_LIT>', '<STR_LIT>')<EOL>cp_ops = config.getint('<STR_LIT>', '<STR_LIT>')<EOL>cp_timeout = config.getint('<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>except ConfigParser.NoOptionError as e:<EOL><INDENT>raise ConfigError('<STR_LIT>' % e)<EOL><DEDENT>if not os.path.exists(data_dir):<EOL><INDENT>raise ConfigError('<STR_LIT>' % data_dir)<EOL><DEDENT>if not os.access(data_dir, os.W_OK | os.R_OK):<EOL><INDENT>raise ConfigError('<STR_LIT>' % data_dir)<EOL><DEDENT>store = DbmQueue(data_dir, checkpoint_operations=cp_ops,<EOL>checkpoint_timeout=cp_timeout)<EOL>return store<EOL>
Creates a DBM queue store, pulling config values from the CoilMQ configuration.