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
parent
22e0522a37
commit
1ea796363b
|
@ -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 ()
|
||||||
|
|
Loading…
Reference in New Issue