* 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:
parent
eb217f2cb6
commit
731665985a
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user