1,610
edits
Changes
From Gramps
→Patchs
{{man warn|Warning:|DO NOT BETA TEST WITH YOUR RESEARCH DATA. EXPORT DATA FIRST TO HAVE A BACKUP, THEN RUN THE TOOL}}
== Patchs Patches ==
===Parsing place title===
+ , r'\s*'+citygr+r'.*?)\s*[.,]\s*'+codegr+r'.*?)\s*[.,]\s*'
+ +stategr+r'.*?)\s*[.,]\s*'+countrygr+r'.*?)\s*$'),
===For GRAMPS 3.2===
To allow PlaceCompletion 1.2 to work with trunk, you'll need to make a couple of changes:
<pre>
--- .gramps/PlaceCompletion.py 2009-02-11 17:04:27.000000000 -0500
+++ .gramps/plugins/PlaceCompletion.py 2009-09-06 12:06:49.000000000 -0400
@@ -60,6 +60,14 @@
import PlaceUtils
import Errors
+if hasattr(Utils, "ProgressMeter"):
+ ProgressMeter = Utils.ProgressMeter
+else:
+ import gui.utils
+ if hasattr(gui.utils, "ProgressMeter"):
+ ProgressMeter = gui.utils.ProgressMeter
+ else:
+ raise ImportError("can't find ProgressMeter")
#------------------------------------------------------------------------
#
#
@@ -498,8 +506,8 @@
self.nrplaces_in_tree = len(ind_list)
# Populating might take a while, add a progress bar
- progress = Utils.ProgressMeter(
- _("Finding Places and appropriate changes"),'')
+ progress = ProgressMeter(
+ _("Finding Places and appropriate changes"),'')
#apply the filter
progress.set_pass(_('Filtering'),1)
progress.step()
@@ -704,7 +712,7 @@
self.trans = self.db.transaction_begin("",batch=True)
self.db.disable_signals()
- progress = Utils.ProgressMeter(_('Doing Place changes'),'')
+ progress = ProgressMeter(_('Doing Place changes'),'')
#we do not know how many places in the treeview, and counting would
# mean transversing the tree. Set the progress to the possible maximum
progress.set_pass('',self.db.get_number_of_places())
</pre>