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:
parent
dd818829bd
commit
61347c3093
@ -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,
|
||||||
|
@ -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,
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user