* 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:
Don Allingham
2006-04-27 21:56:36 +00:00
parent 513f6706bf
commit 88c6831430
3 changed files with 8 additions and 4 deletions

View File

@@ -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"):