Continued work on GEP008: Move BasicUtils/UpdateCallback.py to gen/updatecallback.py.

svn: r14025
This commit is contained in:
Brian Matherly
2010-01-10 20:21:10 +00:00
parent 2a36355a8b
commit 252ef6daee
17 changed files with 27 additions and 29 deletions

View File

@ -53,14 +53,14 @@ log = logging.getLogger(".RebuildRefMap")
#-------------------------------------------------------------------------
from PluginUtils import Tool
from QuestionDialog import OkDialog
from BasicUtils import UpdateCallback
from gen.updatecallback import UpdateCallback
#-------------------------------------------------------------------------
#
# runTool
#
#-------------------------------------------------------------------------
class RebuildRefMap(Tool.Tool,UpdateCallback):
class RebuildRefMap(Tool.Tool, UpdateCallback):
def __init__(self, dbstate, uistate, options_class, name, callback=None):
@ -79,7 +79,7 @@ class RebuildRefMap(Tool.Tool,UpdateCallback):
self.callback = None
print "Rebuilding reference maps..."
UpdateCallback.__init__(self,self.callback)
UpdateCallback.__init__(self, self.callback)
self.set_total(6)
self.db.reindex_reference_map(self.update)
self.reset()