8842: Fix proxy to include all referenced place objects

The referenced by selection proxy needs to include places that
enclose referenced places.
This commit is contained in:
Nick Hall 2015-08-15 19:03:40 +01:00
parent cc83bbbfb9
commit 38a8c3e3b1

View File

@ -259,6 +259,11 @@ class ReferencedBySelectionProxyDb(ProxyDbBase):
self.process_media_ref_list(place)
self.process_urls(place)
for placeref in place.get_placeref_list():
place = self.db.get_place_from_handle(placeref.ref)
if place:
self.process_place(place)
def process_source(self, source):
"""
Follow the source object and find all of the primary objects