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

svn: r23455
This commit is contained in:
Doug Blank 2013-11-06 02:04:07 +00:00 committed by John Ralls
parent 3f36cc9cdc
commit 4cbb54bd88
3 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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,