Changeset - 873cff4229e3
[Not reviewed]
0 1 0
Joar Wandborg - 10 years ago 2013-12-17 10:18:35
joar@wandborg.se
[web] Late init of storage engine.
1 file changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
accounting/web.py
Show inline comments
...
 
@@ -13,2 +13,3 @@ from flask.ext.migrate import Migrate, MigrateCommand
 

	
 
from accounting.storage import Storage
 
from accounting.storage.ledgercli import Ledger
...
 
@@ -23,3 +24,3 @@ app.config.from_pyfile('config.py')
 

	
 
storage = Ledger(app=app)
 
storage = Storage()
 

	
...
 
@@ -154,2 +155,5 @@ def main(argv=None):
 

	
 
    global storage
 
    storage = Ledger(app=app)
 

	
 
    args = parser.parse_args(argv)
0 comments (0 inline, 0 general)