From 8c3e4701d9ae328f6be502cc726000d640cf9a3e Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Fri, 30 Aug 2013 19:14:58 +0000 Subject: [PATCH] Finish merging bug# 6960 fix from trunk I don't know why git diff didn't pick up citation.py :( svn: r22963 --- gramps/gen/lib/citation.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gramps/gen/lib/citation.py b/gramps/gen/lib/citation.py index 77408cc30..a43a26147 100644 --- a/gramps/gen/lib/citation.py +++ b/gramps/gen/lib/citation.py @@ -44,13 +44,15 @@ from .mediabase import MediaBase from .notebase import NoteBase from .datebase import DateBase from ..constfunc import cuni +from .citationbase import IndirectCitationBase #------------------------------------------------------------------------- # # Citation class # #------------------------------------------------------------------------- -class Citation(MediaBase, NoteBase, PrimaryObject, DateBase): +class Citation(MediaBase, NoteBase, IndirectCitationBase, + PrimaryObject, DateBase): """ A record of a citation of a source of information. @@ -225,6 +227,16 @@ class Citation(MediaBase, NoteBase, PrimaryObject, DateBase): """ return self.media_list + def get_citation_child_list(self): + """ + Return the list of child secondary objects that may refer citations. + + :returns: Returns the list of child secondary child objects that may + refer citations. + :rtype: list + """ + return self.media_list + def get_handle_referents(self): """ Return the list of child objects which may, directly or through