From 283678e47e82945e696e39009a38928dfa997e87 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Mon, 10 Dec 2007 21:44:09 +0000 Subject: [PATCH] 2007-12-10 Benny Malengier * src/gen/lib/notebase.py: change comment string * src/gen/lib/person.py: change comment string * src/gen/lib/event.py: add attr to list of sec objects, bug #1318 svn: r9481 --- ChangeLog | 5 +++++ src/gen/lib/event.py | 2 +- src/gen/lib/notebase.py | 2 +- src/gen/lib/person.py | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2c8e13f42..bc7e625ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-12-10 Benny Malengier + * src/gen/lib/notebase.py: change comment string + * src/gen/lib/person.py: change comment string + * src/gen/lib/event.py: add attr to list of sec objects, bug #1318 + 2007-12-10 Zdenek Hatas * src/DateHandler/_Date_cs.py: czech datehandler added * src/DateHandler/__init__.py: czech datehandler included diff --git a/src/gen/lib/event.py b/src/gen/lib/event.py index 05592ada3..aab15d33c 100644 --- a/src/gen/lib/event.py +++ b/src/gen/lib/event.py @@ -220,7 +220,7 @@ class Event(SourceBase, NoteBase, MediaBase, AttributeBase, @return: Returns the list of objects refereincing primary objects. @rtype: list """ - return self.media_list + self.source_list + return self.get_sourcref_child_list() + self.source_list def is_empty(self): """ diff --git a/src/gen/lib/notebase.py b/src/gen/lib/notebase.py index eb15ec424..0ae733e18 100644 --- a/src/gen/lib/notebase.py +++ b/src/gen/lib/notebase.py @@ -35,7 +35,7 @@ class NoteBase: """ Base class for storing notes. - Starting in 2.3 branch, the objects may have multiple notes. + Starting in 3.0 branch, the objects may have multiple notes. Internally, this class maintains a list of Note handles, as a note_list attribute of the NoteBase object. """ diff --git a/src/gen/lib/person.py b/src/gen/lib/person.py index d2c117bb8..fe3b9e6b5 100644 --- a/src/gen/lib/person.py +++ b/src/gen/lib/person.py @@ -350,6 +350,7 @@ class Person(SourceBase, NoteBase, AttributeBase, MediaBase, @return: Returns the list of objects refereincing primary objects. @rtype: list """ + #don't count double, notes can be found in sourcref return self.get_sourcref_child_list() + self.source_list \ + self.event_ref_list