* src/plugins/ChangeTypes.py: Remove Utils.modified() call.

* src/plugins/Check.py: Remove Utils.modified() call.
* src/plugins/PatchNames.py: Remove Utils.modified() call.
* src/plugins/ReadGedcom.py: Remove Utils.modified() call.
* src/plugins/ReorderIds.py: Remove Utils.modified() call.
* src/plugins/WriteCD.py: Remove Utils.modified() call.
* src/plugins/WritePkg.py: Remove Utils.modified() call.
* src/plugins/Merge.py: Typo.


svn: r3159
This commit is contained in:
Alex Roitman 2004-05-13 00:49:17 +00:00
parent d43745dc97
commit a3e78435d4
9 changed files with 12 additions and 14 deletions

View File

@ -1,3 +1,13 @@
2004-05-12 Alex Roitman <shura@alex.neuro.umn.edu>
* src/plugins/ChangeTypes.py: Remove Utils.modified() call.
* src/plugins/Check.py: Remove Utils.modified() call.
* src/plugins/PatchNames.py: Remove Utils.modified() call.
* src/plugins/ReadGedcom.py: Remove Utils.modified() call.
* src/plugins/ReorderIds.py: Remove Utils.modified() call.
* src/plugins/WriteCD.py: Remove Utils.modified() call.
* src/plugins/WritePkg.py: Remove Utils.modified() call.
* src/plugins/Merge.py: Typo.
2004-05-11 Don Allingham <donaldallingham@users.sourceforge.net> 2004-05-11 Don Allingham <donaldallingham@users.sourceforge.net>
* src/GrampsCfg.py: remove unused options * src/GrampsCfg.py: remove unused options
* src/gramps.glade: remove unused panels in preferences * src/gramps.glade: remove unused panels in preferences

View File

@ -87,7 +87,6 @@ class ChangeTypes:
if event.get_name() == original: if event.get_name() == original:
event.set_name(new) event.set_name(new)
modified = modified + 1 modified = modified + 1
Utils.modified()
self.db.commit_event(event) self.db.commit_event(event)
if modified == 1: if modified == 1:

View File

@ -99,12 +99,10 @@ class CheckIntegrity:
mother = self.db.find_person_from_id(mother_id) mother = self.db.find_person_from_id(mother_id)
if father_id and family_id not in father.get_family_id_list(): if father_id and family_id not in father.get_family_id_list():
Utils.modified()
self.broken_parent_links.append((father_id,family_id)) self.broken_parent_links.append((father_id,family_id))
father.add_family_id(family_id) father.add_family_id(family_id)
self.db.commit_person(father) self.db.commit_person(father)
if mother_id and family_id not in mother.get_family_id_list(): if mother_id and family_id not in mother.get_family_id_list():
Utils.modified()
self.broken_parent_links.append((mother_id,family_id)) self.broken_parent_links.append((mother_id,family_id))
mother.add_family_id(family_id) mother.add_family_id(family_id)
self.db.commit_person(mother) self.db.commit_person(mother)
@ -118,7 +116,6 @@ class CheckIntegrity:
else: else:
family.remove_child_id(child_id) family.remove_child_id(child_id)
self.db.commit_family(family) self.db.commit_family(family)
Utils.modified()
self.broken_links.append((child_id,family_id)) self.broken_links.append((child_id,family_id))
def cleanup_missing_photos(self,cl=0): def cleanup_missing_photos(self,cl=0):
@ -175,7 +172,6 @@ class CheckIntegrity:
self.db.commit_place(p) self.db.commit_place(p)
self.removed_photo.append(ObjectId) self.removed_photo.append(ObjectId)
self.db.remove_object(ObjectId) self.db.remove_object(ObjectId)
Utils.modified()
def leave_clicked(): def leave_clicked():
self.bad_photo.append(ObjectId) self.bad_photo.append(ObjectId)
@ -235,7 +231,6 @@ class CheckIntegrity:
for key in self.db.get_family_keys(): for key in self.db.get_family_keys():
family = self.db.find_family_from_id(key) family = self.db.find_family_from_id(key)
if not family.get_father_id() and not family.get_mother_id(): if not family.get_father_id() and not family.get_mother_id():
Utils.modified()
self.empty_family.append(family_id) self.empty_family.append(family_id)
self.delete_empty_family(family_id) self.delete_empty_family(family_id)

View File

@ -266,7 +266,7 @@ class Merge:
self.window.destroy() self.window.destroy()
def add_show_to_menu(self): def add_show_to_menu(self):
self.show_parent.child_windows[self.win_show_key] = self.window self.parent.child_windows[self.win_show_key] = self.window
self.show_parent_menu_item = gtk.MenuItem(_('Potential Merges')) self.show_parent_menu_item = gtk.MenuItem(_('Potential Merges'))
self.show_parent_menu_item.connect("activate",self.present_show) self.show_parent_menu_item.connect("activate",self.present_show)
self.show_parent_menu_item.show() self.show_parent_menu_item.show()

View File

@ -210,7 +210,6 @@ class PatchNames:
name.set_first_name(grp[1]) name.set_first_name(grp[1])
p.set_nick_name(grp[2]) p.set_nick_name(grp[2])
self.db.commit_person(p) self.db.commit_person(p)
Utils.modified()
for grp in self.title_list: for grp in self.title_list:
iter = self.title_hash[grp[0]] iter = self.title_hash[grp[0]]
@ -221,7 +220,6 @@ class PatchNames:
name.set_first_name(grp[2]) name.set_first_name(grp[2])
name.set_title(grp[1]) name.set_title(grp[1])
self.db.commit_person(p) self.db.commit_person(p)
Utils.modified()
self.close(obj) self.close(obj)
self.cb(1) self.cb(1)

View File

@ -175,7 +175,6 @@ def importData(database, filename, cb=None):
if close: if close:
statusWindow.destroy() statusWindow.destroy()
Utils.modified()
if cb: if cb:
statusWindow.destroy() statusWindow.destroy()
cb(1) cb(1)

View File

@ -1,7 +1,7 @@
# #
# Gramps - a GTK+/GNOME based genealogy program # Gramps - a GTK+/GNOME based genealogy program
# #
# Copyright (C) 2000-2003 Donald N. Allingham # Copyright (C) 2000-2004 Donald N. Allingham
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -50,7 +50,6 @@ class ReorderIds:
self.reorder(db.get_object_map(),db.oprefix,None) self.reorder(db.get_object_map(),db.oprefix,None)
self.reorder(db.get_source_map(),db.sprefix,db.build_source_display) self.reorder(db.get_source_map(),db.sprefix,db.build_source_display)
self.reorder(db.get_place_id_map(),db.pprefix,db.build_place_display) self.reorder(db.get_place_id_map(),db.pprefix,db.build_place_display)
Utils.modified()
Utils.history_broken() Utils.history_broken()
callback(1) callback(1)

View File

@ -231,7 +231,6 @@ class PackageWriter:
nl.remove(o) nl.remove(o)
p.set_media_list(nl) p.set_media_list(nl)
self.db.remove_object(self.object_id) self.db.remove_object(self.object_id)
Utils.modified()
def leave_clicked(): def leave_clicked():
# File is lost => do nothing, leave as is # File is lost => do nothing, leave as is

View File

@ -138,7 +138,6 @@ class PackageWriter:
nl.remove(o) nl.remove(o)
p.set_media_list(nl) p.set_media_list(nl)
self.db.remove_object(ObjectId) self.db.remove_object(ObjectId)
Utils.modified()
def leave_clicked(): def leave_clicked():
# File is lost => do nothing, leave as is # File is lost => do nothing, leave as is