0006578: referencedbyselection.py process_object calls non-existant process_note method
svn: r21803
This commit is contained in:
parent
1975ca92b7
commit
c5982a4514
@ -308,16 +308,14 @@ class ReferencedBySelectionProxyDb(ProxyDbBase):
|
||||
self.process_attributes(media)
|
||||
self.process_notes(media)
|
||||
|
||||
def process_notes(self, original_obj):
|
||||
def process_note(self, note):
|
||||
"""
|
||||
Follow the note object and find all of the primary objects
|
||||
that it references.
|
||||
"""
|
||||
for note_handle in original_obj.get_note_list():
|
||||
if note_handle and note_handle not in self.referenced["Note"]:
|
||||
note = self.db.get_note_from_handle(note_handle)
|
||||
if note:
|
||||
self.referenced["Note"].add(note_handle)
|
||||
if note is None or note.handle in self.referenced["Note"]:
|
||||
return
|
||||
self.referenced["Note"].add(note.handle)
|
||||
for tag in note.text.get_tags():
|
||||
if tag.name == 'Link':
|
||||
if tag.value.startswith("gramps://"):
|
||||
@ -327,6 +325,13 @@ class ReferencedBySelectionProxyDb(ProxyDbBase):
|
||||
if prop == "handle":
|
||||
self.process_object(obj_class, value)
|
||||
|
||||
def process_notes(self, original_obj):
|
||||
""" Find all of the primary objects referred to """
|
||||
for note_handle in original_obj.get_note_list():
|
||||
if note_handle:
|
||||
note = self.db.get_note_from_handle(note_handle)
|
||||
self.process_note(note)
|
||||
|
||||
# --------------------------------------------
|
||||
|
||||
def process_tags(self, original_obj):
|
||||
|
Loading…
Reference in New Issue
Block a user