From f2899fb59608706e328014470ae849683768c37d Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 25 Mar 2006 03:07:20 +0000 Subject: [PATCH] added repository reference editor svn: r6206 --- gramps2/ChangeLog | 4 ++++ gramps2/src/DdTargets.py | 4 ++-- gramps2/src/DisplayTabs.py | 8 ++++---- gramps2/src/Editors/Makefile.am | 1 + gramps2/src/Editors/__init__.py | 1 + 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index e78b05864..2a12ffe3a 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2006-03-24 Don Allingham + * src/Editors/Makefile.am: added _EditRepoRef.py + * src/Editors/_EditRepoRef.py: Added + 2006-03-23 Don Allingham * src/Editors/_EditFamily.py: fix arglist to save, handle add parent family switching. diff --git a/gramps2/src/DdTargets.py b/gramps2/src/DdTargets.py index ae124f002..4793c8790 100644 --- a/gramps2/src/DdTargets.py +++ b/gramps2/src/DdTargets.py @@ -135,13 +135,13 @@ class _DdTargets(object): self.ATTRIBUTE, self.ADDRESS, self.LOCATION, - self.SOURCE_LINK, self.SOURCEREF, self.EVENTREF, self.NAME, - self.REPO_LINK, self.REPOREF, self.MEDIAOBJ, + self.REPO_LINK, + self.SOURCE_LINK, self.PERSON_LINK, self.PERSON_LINK_LIST] diff --git a/gramps2/src/DisplayTabs.py b/gramps2/src/DisplayTabs.py index 14c4271ee..0fa170a30 100644 --- a/gramps2/src/DisplayTabs.py +++ b/gramps2/src/DisplayTabs.py @@ -1510,9 +1510,9 @@ class RepoEmbedList(EmbeddedList): try: ref = RelLib.RepoRef() repo = self.dbstate.db.get_repository_from_handle(obj) - EditRepoRef.EditRepoRef( + EditRepoRef( self.dbstate,self.uistate,self.track, - repo, ref, self.obj, self.add_callback) + repo, ref, self.add_callback) except Errors.WindowActiveError: pass @@ -1522,7 +1522,7 @@ class RepoEmbedList(EmbeddedList): ref = RelLib.RepoRef() repo = RelLib.Repository() try: - EditRepoRef.EditRepoRef( + EditRepoRef( self.dbstate, self.uistate, self.track, repo, ref, self.add_callback) except Errors.WindowActiveError: @@ -1541,7 +1541,7 @@ class RepoEmbedList(EmbeddedList): if ref: repo = self.dbstate.db.get_repository_from_handle(ref.ref) try: - Editors.EditRepoRef( + EditRepoRef( self.dbstate, self.uistate, self.track, repo, ref, self.edit_callback) except Errors.WindowActiveError: diff --git a/gramps2/src/Editors/Makefile.am b/gramps2/src/Editors/Makefile.am index 509adb4d9..ee219ff84 100644 --- a/gramps2/src/Editors/Makefile.am +++ b/gramps2/src/Editors/Makefile.am @@ -21,6 +21,7 @@ pkgdata_PYTHON = \ _EditPrimary.py \ _EditReference.py \ _EditRepository.py \ + _EditRepoRef.py \ _EditSecondary.py \ _EditSource.py \ _EditSourceRef.py \ diff --git a/gramps2/src/Editors/__init__.py b/gramps2/src/Editors/__init__.py index 5b27e1994..2404e36b5 100644 --- a/gramps2/src/Editors/__init__.py +++ b/gramps2/src/Editors/__init__.py @@ -30,6 +30,7 @@ from _EditName import * from _EditPerson import * from _EditPlace import * from _EditRepository import * +from _EditRepoRef import * from _EditSource import * from _EditSourceRef import * from _EditUrl import *