Added callback parameter to __init__ method so that all editors have a uniform signature (called from Note Link)

svn: 23454
This commit is contained in:
Doug Blank 2013-11-06 02:01:01 +00:00 committed by John Ralls
parent dd818829bd
commit 61347c3093
3 changed files with 3 additions and 3 deletions

View File

@ -340,7 +340,7 @@ class EditFamily(EditPrimary):
QR_CATEGORY = CATEGORY_QR_FAMILY 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, EditPrimary.__init__(self, dbstate, uistate, track,
family, dbstate.db.get_family_from_handle, family, dbstate.db.get_family_from_handle,

View File

@ -52,7 +52,7 @@ from ..glade import Glade
class EditRepository(EditPrimary): 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, EditPrimary.__init__(self, dbstate, uistate, track, repository,
dbstate.db.get_repository_from_handle, dbstate.db.get_repository_from_handle,

View File

@ -63,7 +63,7 @@ from ..glade import Glade
class EditSource(EditPrimary): 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, EditPrimary.__init__(self, dbstate, uistate, track, source,
dbstate.db.get_source_from_handle, dbstate.db.get_source_from_handle,