config gutenberg db

the connection settings to the postgres db were being not being set by autocat3, but instead depended on ebook converter having been run in the python environment.

This was not a good situation!
onedrive
eric 2019-04-05 17:33:43 -04:00
parent 22e0522a37
commit 1ea796363b
1 changed files with 1 additions and 0 deletions

View File

@ -164,6 +164,7 @@ def main ():
if hasattr (cherrypy.engine, 'signal_handler'): if hasattr (cherrypy.engine, 'signal_handler'):
cherrypy.engine.signal_handler.subscribe () cherrypy.engine.signal_handler.subscribe ()
GutenbergDatabase.options.update(cherrypy.config)
cherrypy.engine.pool = plugins.ConnectionPool ( cherrypy.engine.pool = plugins.ConnectionPool (
cherrypy.engine, params = GutenbergDatabase.get_connection_params (cherrypy.config)) cherrypy.engine, params = GutenbergDatabase.get_connection_params (cherrypy.config))
cherrypy.engine.pool.subscribe () cherrypy.engine.pool.subscribe ()