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:
parent
3f36cc9cdc
commit
4cbb54bd88
@ -345,7 +345,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,
|
||||||
|
@ -53,7 +53,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