示例#1
0
 def add_writable_database(self, path):
     self._config._not_finished()
     path = str(path)
     if self.__writable_db is not None:
         raise ConfigException('Multiple writable databases are not yet supported.')
     self.__writable_db, diagnostics = database_from_csv(self.__reactor, path, writable=True)
     self.__report((path, d) for d in diagnostics)
示例#2
0
文件: config.py 项目: kpreid/shinysdr
 def add_writable_database(self, path):
     self._config._not_finished()
     path = str(path)
     if self.__writable_db is not None:
         raise ConfigException('Multiple writable databases are not yet supported.')
     self.__writable_db, diagnostics = database_from_csv(self.__reactor, path, writable=True)
     self.__report((path, d) for d in diagnostics)