* 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
This commit is contained in:
Alex Roitman 2006-08-30 00:08:45 +00:00
parent 222bd78857
commit e7a7a050dd
6 changed files with 14 additions and 9 deletions

View File

@ -1,4 +1,9 @@
2006-08-29 Alex Roitman <shura@gramps-project.org>
* 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.

View File

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

View File

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

View File

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

View File

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

View File

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