Split Utils in a non GUI and GUI part

move GrampsCfg utils to Utils
improve import strategy


svn: r12680
This commit is contained in:
Benny Malengier
2009-06-19 15:23:58 +00:00
parent 0ac67e8a59
commit 9d417e2cd6
40 changed files with 327 additions and 405 deletions

View File

@ -50,7 +50,7 @@ import GrampsDisplay
from PluginUtils import Tool
from gen.plug import PluginManager
import Utils
from gui.utils import ProgressMeter
from glade import Glade
CITY_STATE_ZIP = re.compile("((\w|\s)+)\s*,\s*((\w|\s)+)\s*(,\s*((\d|-)+))", re.UNICODE)
@ -428,7 +428,7 @@ class ExtractCity(Tool.BatchTool, ManagedWindow.ManagedWindow):
Performs the actual extraction of information
"""
self.progress = Utils.ProgressMeter(_('Checking Place Titles'), '')
self.progress = ProgressMeter(_('Checking Place Titles'), '')
self.progress.set_pass(_('Looking for place fields'),
len(self.db.get_place_handles()))