From e7a7a050dde48c6ac6e9b09e7f90325ce14327d6 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Wed, 30 Aug 2006 00:08:45 +0000 Subject: [PATCH] * src/RelLib/_SourceRef.py (SourceRef.__init__): Pass source. * src/RelLib/_ChildRef.py (ChildRef.__init__): Pass source. * src/RelLib/_EventRef.py (EventRef.__init__): Pass source. * src/RelLib/_PersonRef.py (PersonRef.__init__): Pass source. * src/RelLib/_RepoRef.py (RepoRef.__init__): Pass source. svn: r7291 --- gramps2/ChangeLog | 5 +++++ gramps2/src/RelLib/_ChildRef.py | 2 +- gramps2/src/RelLib/_EventRef.py | 8 ++++---- gramps2/src/RelLib/_PersonRef.py | 2 +- gramps2/src/RelLib/_RepoRef.py | 4 ++-- gramps2/src/RelLib/_SourceRef.py | 2 +- 6 files changed, 14 insertions(+), 9 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index ce0d77522..bafa951d8 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,9 @@ 2006-08-29 Alex Roitman + * src/RelLib/_SourceRef.py (SourceRef.__init__): Pass source. + * src/RelLib/_ChildRef.py (ChildRef.__init__): Pass source. + * src/RelLib/_EventRef.py (EventRef.__init__): Pass source. + * src/RelLib/_PersonRef.py (PersonRef.__init__): Pass source. + * src/RelLib/_RepoRef.py (RepoRef.__init__): Pass source. * src/glade/gramps.glade: Add privacy controls to all editors. * src/Editors/_EditSource.py: Add privacy control. * src/Editors/_EditSourceRef.py: Add privacy control. diff --git a/gramps2/src/RelLib/_ChildRef.py b/gramps2/src/RelLib/_ChildRef.py index fa07ed716..b77ba659a 100644 --- a/gramps2/src/RelLib/_ChildRef.py +++ b/gramps2/src/RelLib/_ChildRef.py @@ -55,7 +55,7 @@ class ChildRef(SecondaryObject,PrivacyBase,SourceBase,NoteBase,RefBase): PrivacyBase.__init__(self,source) SourceBase.__init__(self,source) NoteBase.__init__(self,source) - RefBase.__init__(self) + RefBase.__init__(self,source) if source: self.frel = source.frel self.mrel = source.mrel diff --git a/gramps2/src/RelLib/_EventRef.py b/gramps2/src/RelLib/_EventRef.py index bdb0f5fe6..02be7075d 100644 --- a/gramps2/src/RelLib/_EventRef.py +++ b/gramps2/src/RelLib/_EventRef.py @@ -54,10 +54,10 @@ class EventRef(SecondaryObject,PrivacyBase,NoteBase,AttributeBase,RefBase): Creates a new EventRef instance, copying from the source if present. """ SecondaryObject.__init__(self) - PrivacyBase.__init__(self) - NoteBase.__init__(self) - AttributeBase.__init__(self) - RefBase.__init__(self) + PrivacyBase.__init__(self,source) + NoteBase.__init__(self,source) + AttributeBase.__init__(self,source) + RefBase.__init__(self,source) if source: self.role = source.role else: diff --git a/gramps2/src/RelLib/_PersonRef.py b/gramps2/src/RelLib/_PersonRef.py index 6f5625809..2cf70b2ed 100644 --- a/gramps2/src/RelLib/_PersonRef.py +++ b/gramps2/src/RelLib/_PersonRef.py @@ -54,7 +54,7 @@ class PersonRef(SecondaryObject,PrivacyBase,SourceBase,NoteBase,RefBase): PrivacyBase.__init__(self,source) SourceBase.__init__(self,source) NoteBase.__init__(self,source) - RefBase.__init__(self) + RefBase.__init__(self,source) if source: self.rel = source.rel else: diff --git a/gramps2/src/RelLib/_RepoRef.py b/gramps2/src/RelLib/_RepoRef.py index 7f99d1084..6acf3fa3a 100644 --- a/gramps2/src/RelLib/_RepoRef.py +++ b/gramps2/src/RelLib/_RepoRef.py @@ -46,8 +46,8 @@ class RepoRef(SecondaryObject,NoteBase,RefBase): def __init__(self,source=None): SecondaryObject.__init__(self) - NoteBase.__init__(self) - RefBase.__init__(self) + NoteBase.__init__(self,source) + RefBase.__init__(self,source) if source: self.call_number = source.call_number self.media_type = source.media_type diff --git a/gramps2/src/RelLib/_SourceRef.py b/gramps2/src/RelLib/_SourceRef.py index 27b5a7203..2c3e8de67 100644 --- a/gramps2/src/RelLib/_SourceRef.py +++ b/gramps2/src/RelLib/_SourceRef.py @@ -58,7 +58,7 @@ class SourceRef(SecondaryObject,DateBase,PrivacyBase,NoteBase,RefBase): DateBase.__init__(self,source) PrivacyBase.__init__(self,source) NoteBase.__init__(self,source) - RefBase.__init__(self) + RefBase.__init__(self,source) if source: self.confidence = source.confidence self.page = source.page