Commit 484d283 Provide defaults to allow importing the app when building the docs

2 files Authored and Committed by abompard a month ago
Provide defaults to allow importing the app when building the docs

    
 1 @@ -3,6 +3,14 @@
 2   
 3   This documents ways developers can interface with Fedora Hubs.
 4   
 5 + 
 6 + View utils
 7 + ----------
 8 + 
 9 + .. automodule:: hubs.views.utils
10 +    :members:
11 + 
12 + 
13   .. _widgets-api:
14   
15   
 1 @@ -35,8 +35,10 @@
 2   fedmsg_config = fedmsg.config.load_config()
 3   fedmsg.meta.make_processors(**fedmsg_config)
 4   
 5 - session = hubs.models.init(fedmsg_config['hubs.sqlalchemy.uri'])
 6 - datanommer.models.init(fedmsg_config['datanommer.sqlalchemy.uri'])
 7 + session = hubs.models.init(
 8 +     fedmsg_config.get('hubs.sqlalchemy.uri', 'sqlite:///'))
 9 + datanommer.models.init(
10 +     fedmsg_config.get('datanommer.sqlalchemy.uri', 'sqlite:///'))
11   
12   
13   @app.before_request