Example #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)
Example #2
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)