* src/Editors/_EditPerson.py (EditPerson._create_tabbed_pages):
initialize load_image callback * src/DisplayTabs.py (GalleryTab): call callback if defined when the list is updated, handle reorder inserting of None objects svn: r6476
This commit is contained in:
@@ -564,12 +564,10 @@ class EditPerson(EditPrimary):
|
||||
Loads the primary image into the main form if it exists.
|
||||
"""
|
||||
media_list = self.obj.get_media_list()
|
||||
print media_list
|
||||
if media_list:
|
||||
photo = media_list[0]
|
||||
object_handle = photo.get_reference_handle()
|
||||
obj = self.db.get_object_from_handle(object_handle)
|
||||
print photo, obj.get_path()
|
||||
if self.load_obj != obj.get_path():
|
||||
mime_type = obj.get_mime_type()
|
||||
if mime_type and mime_type.startswith("image"):
|
||||
|
Reference in New Issue
Block a user