* src/RelLib.py (SourceNote.replace_source_references,

MediaBase.replace_media_references,): Fix problem with replacing
multiple occurrences.


svn: r4870
This commit is contained in:
Alex Roitman 2005-06-23 21:50:45 +00:00
parent dfd0aea13c
commit 6cc7bd3aac
2 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,9 @@
* src/Relationship.py (is_spouse): Use context. * src/Relationship.py (is_spouse): Use context.
* src/get_strings: Add "__" to default keywords. * src/get_strings: Add "__" to default keywords.
* src/po/template.po: Update for 2.0.4. * src/po/template.po: Update for 2.0.4.
* src/RelLib.py (SourceNote.replace_source_references,
MediaBase.replace_media_references,): Fix problem with replacing
multiple occurrences.
2005-06-23 Julio Sanchez <jsanchez@users.sourceforge.net> 2005-06-23 Julio Sanchez <jsanchez@users.sourceforge.net>
* src/WriteGedcom.py: Fix family source references, fix spurious * src/WriteGedcom.py: Fix family source references, fix spurious

View File

@ -528,7 +528,7 @@ class SourceNote(BaseObject,NoteBase):
for ix_replace in xrange(n_replace): for ix_replace in xrange(n_replace):
ix = refs_list.index(old_handle) ix = refs_list.index(old_handle)
self.source_list[ix].ref = new_handle self.source_list[ix].ref = new_handle
refs_list.pop(ix) refs_list[ix] = new_handle
for item in self.get_sourcref_child_list(): for item in self.get_sourcref_child_list():
item.replace_source_references(old_handle,new_handle) item.replace_source_references(old_handle,new_handle)
@ -628,7 +628,7 @@ class MediaBase:
for ix_replace in xrange(n_replace): for ix_replace in xrange(n_replace):
ix = refs_list.index(old_handle) ix = refs_list.index(old_handle)
self.media_list[ix].ref = new_handle self.media_list[ix].ref = new_handle
refs_list.pop(ix) refs_list[ix] = new_handle
class DateBase: class DateBase:
""" """