From 61347c3093257ba8daff63e2591b4ff980d68749 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 6 Nov 2013 02:01:01 +0000 Subject: [PATCH] Added callback parameter to __init__ method so that all editors have a uniform signature (called from Note Link) svn: 23454 --- 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 9d779d7c1..1aacafcb3 100644 --- a/gramps/gui/editors/editfamily.py +++ b/gramps/gui/editors/editfamily.py @@ -340,7 +340,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 bd2cfa08e..f618ac60e 100644 --- a/gramps/gui/editors/editrepository.py +++ b/gramps/gui/editors/editrepository.py @@ -52,7 +52,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 5739b4783..59c627cb0 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,