From 4cbb54bd8813c7c8b397122f5ccbb82f9cfda724 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 6 Nov 2013 02:04:07 +0000 Subject: [PATCH] Added callback parameter to __init__ method so that all editors have a uniform signature (called from Note Link) svn: r23455 --- gramps/gui/editors/editfamily.py | 2 +- gramps/gui/editors/editrepository.py | 2 +- gramps/gui/editors/editsource.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/gui/editors/editfamily.py b/gramps/gui/editors/editfamily.py index cc3c9a113..a45edc139 100644 --- a/gramps/gui/editors/editfamily.py +++ b/gramps/gui/editors/editfamily.py @@ -345,7 +345,7 @@ class EditFamily(EditPrimary): QR_CATEGORY = CATEGORY_QR_FAMILY - def __init__(self, dbstate, uistate, track, family): + def __init__(self, dbstate, uistate, track, family, callback=None): EditPrimary.__init__(self, dbstate, uistate, track, family, dbstate.db.get_family_from_handle, diff --git a/gramps/gui/editors/editrepository.py b/gramps/gui/editors/editrepository.py index 1dbe81445..1f00b3993 100644 --- a/gramps/gui/editors/editrepository.py +++ b/gramps/gui/editors/editrepository.py @@ -53,7 +53,7 @@ from ..glade import Glade class EditRepository(EditPrimary): - def __init__(self, dbstate, uistate, track, repository): + def __init__(self, dbstate, uistate, track, repository, callback=None): EditPrimary.__init__(self, dbstate, uistate, track, repository, dbstate.db.get_repository_from_handle, diff --git a/gramps/gui/editors/editsource.py b/gramps/gui/editors/editsource.py index 55ef7b38a..85b0f0502 100644 --- a/gramps/gui/editors/editsource.py +++ b/gramps/gui/editors/editsource.py @@ -63,7 +63,7 @@ from ..glade import Glade class EditSource(EditPrimary): - def __init__(self, dbstate, uistate, track, source): + def __init__(self, dbstate, uistate, track, source, callback=None): EditPrimary.__init__(self, dbstate, uistate, track, source, dbstate.db.get_source_from_handle,