2008-02-20 Don Allingham <don@gramps-project.org>

* src/GrampsCfg.py: refactoring
	* src/gen/utils/test/callback_test.py: refactoring
	* src/gen/utils/callback.py: refactoring
	* src/gen/utils/longop.py: refactoring
	* src/gen/utils/__init__.py: refactoring
	* src/gen/db/base.py: refactoring
	* src/gen/Makefile.am: refactoring
	* src/DisplayState.py: refactoring
	* src/DbState.py: refactoring
	* src/PluginUtils/_MenuOptions.py: refactoring
	* src/ListModel.py: refactoring
	* src/BaseDoc.py: refactoring



svn: r10086
This commit is contained in:
Don Allingham
2008-02-21 04:58:56 +00:00
parent 274b630f04
commit d45a676492
13 changed files with 146 additions and 137 deletions

View File

@@ -23,10 +23,10 @@ Provides the database state class
"""
from gen.db import GrampsDbBase
from gen.utils import GrampsDBCallback
from gen.utils import Callback
import Config
class DbState(GrampsDBCallback):
class DbState(Callback):
"""
Provides a class to encapsulate the state of the database..
"""
@@ -42,7 +42,7 @@ class DbState(GrampsDBCallback):
Initalize the state with an empty (and useless) GrampsDbBase. This is
just a place holder until a real DB is assigned.
"""
GrampsDBCallback.__init__(self)
Callback.__init__(self)
self.db = GrampsDbBase()
self.open = False
self.active = None