GEPS008: Moved DbState module

svn: r19784
This commit is contained in:
Nick Hall
2012-06-07 16:08:40 +00:00
parent 31bf96496b
commit 1ac34dfeb9
10 changed files with 15 additions and 15 deletions

View File

@@ -49,7 +49,7 @@ from gen.display.name import displayer as name_displayer
import config
import const
import Errors
import DbState
from gen.dbstate import DbState
from gen.db import DbBsddb
import gen.db.exceptions
from gen.plug import BasePluginManager
@@ -313,7 +313,7 @@ def startcli(errors, argparser):
sys.exit(1)
#we need to keep track of the db state
dbstate = DbState.DbState()
dbstate = DbState()
#we need a manager for the CLI session
climanager = CLIManager(dbstate, True)
#load the plugins

View File

@@ -60,7 +60,7 @@ from gen.plug.report import (CATEGORY_TEXT, CATEGORY_DRAW, CATEGORY_BOOK,
CATEGORY_GRAPHVIZ, CATEGORY_CODE)
from gen.plug.report._paper import paper_sizes
import const
import DbState
from gen.dbstate import DbState
from cli.grampscli import CLIManager
import cli.user
@@ -627,7 +627,7 @@ def run_report(db, name, **options_str_dict):
options and values used in clr.option_class.options_dict
filename in clr.option_class.get_output()
"""
dbstate = DbState.DbState()
dbstate = DbState()
climanager = CLIManager(dbstate, False) # don't load db
climanager.do_reg_plugins(dbstate, None)
pmgr = BasePluginManager.get_instance()