2007-10-11 Don Allingham <don@gramps-project.org>
* src/DisplayState.py: fix callback references * src/DbState.py: fix callback references svn: r9156
This commit is contained in:
parent
95bd750cdb
commit
f0c2940c04
@ -1,3 +1,7 @@
|
|||||||
|
2007-10-11 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/DisplayState.py: fix callback references
|
||||||
|
* src/DbState.py: fix callback references
|
||||||
|
|
||||||
2007-10-12 Benny Malengier <benny.malengier@gramps-project.org>
|
2007-10-12 Benny Malengier <benny.malengier@gramps-project.org>
|
||||||
* src/Filters/_FilterParser.py: avoid unknown filters crashing
|
* src/Filters/_FilterParser.py: avoid unknown filters crashing
|
||||||
* src/Filters/Rules/Person/__init__.py: remove private filter list and register, not used.
|
* src/Filters/Rules/Person/__init__.py: remove private filter list and register, not used.
|
||||||
|
@ -25,7 +25,8 @@ Provides the database state class
|
|||||||
__author__ = "Donald N. Allingham"
|
__author__ = "Donald N. Allingham"
|
||||||
__revision__ = "$Revision: 8032 $"
|
__revision__ = "$Revision: 8032 $"
|
||||||
|
|
||||||
from gen.db import GrampsDBCallback, GrampsDbBase
|
from gen.db import GrampsDbBase
|
||||||
|
from gen.utils import GrampsDBCallback
|
||||||
import Config
|
import Config
|
||||||
|
|
||||||
class DbState(GrampsDBCallback):
|
class DbState(GrampsDBCallback):
|
||||||
|
@ -63,7 +63,7 @@ DISABLED = -1
|
|||||||
# History manager
|
# History manager
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
class History(gen.db.GrampsDBCallback):
|
class History(gen.utils.GrampsDBCallback):
|
||||||
""" History manages the objects of a certain type that have been viewed,
|
""" History manages the objects of a certain type that have been viewed,
|
||||||
with ability to go back, or forward.
|
with ability to go back, or forward.
|
||||||
When accessing an object, it should be pushed on the History.
|
When accessing an object, it should be pushed on the History.
|
||||||
@ -75,7 +75,7 @@ class History(gen.db.GrampsDBCallback):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
gen.db.GrampsDBCallback.__init__(self)
|
gen.utils.GrampsDBCallback.__init__(self)
|
||||||
self.clear()
|
self.clear()
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
@ -290,7 +290,7 @@ class WarnHandler(RotateHandler):
|
|||||||
top.run()
|
top.run()
|
||||||
top.destroy()
|
top.destroy()
|
||||||
|
|
||||||
class DisplayState(gen.db.GrampsDBCallback):
|
class DisplayState(gen.utils.GrampsDBCallback):
|
||||||
|
|
||||||
__signals__ = {
|
__signals__ = {
|
||||||
'filters-changed' : (str, ),
|
'filters-changed' : (str, ),
|
||||||
@ -306,7 +306,7 @@ class DisplayState(gen.db.GrampsDBCallback):
|
|||||||
self.uimanager = uimanager
|
self.uimanager = uimanager
|
||||||
self.progress_monitor = progress_monitor
|
self.progress_monitor = progress_monitor
|
||||||
self.window = window
|
self.window = window
|
||||||
gen.db.GrampsDBCallback.__init__(self)
|
gen.utils.GrampsDBCallback.__init__(self)
|
||||||
self.status = status
|
self.status = status
|
||||||
self.status_id = status.get_context_id('GRAMPS')
|
self.status_id = status.get_context_id('GRAMPS')
|
||||||
self.progress = progress
|
self.progress = progress
|
||||||
|
Loading…
Reference in New Issue
Block a user