예제 #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)