* src/plugins/Check.py: Files of note-only objects are no longer reported as missing
svn: r5139
This commit is contained in:
parent
6e71f9a3a3
commit
a67f26ff8d
@ -2,6 +2,8 @@
|
|||||||
* src/plugins/NavWebPage.py: Correct link to Surname list page;
|
* src/plugins/NavWebPage.py: Correct link to Surname list page;
|
||||||
Better handling for not existing media object files and note-only
|
Better handling for not existing media object files and note-only
|
||||||
objects; thumbnails are always png images
|
objects; thumbnails are always png images
|
||||||
|
* src/plugins/Check.py: Files of note-only objects are no longer
|
||||||
|
reported as missing
|
||||||
|
|
||||||
2005-08-28 Don Allingham <don@gramps-project.org>
|
2005-08-28 Don Allingham <don@gramps-project.org>
|
||||||
* src/plugins/NavWebPage.py: handle resticted living people
|
* src/plugins/NavWebPage.py: handle resticted living people
|
||||||
|
@ -314,7 +314,7 @@ class CheckIntegrity:
|
|||||||
for ObjectId in self.db.get_media_object_handles():
|
for ObjectId in self.db.get_media_object_handles():
|
||||||
obj = self.db.get_object_from_handle(ObjectId)
|
obj = self.db.get_object_from_handle(ObjectId)
|
||||||
photo_name = obj.get_path()
|
photo_name = obj.get_path()
|
||||||
if not os.path.isfile(photo_name):
|
if photo_name is not None and photo_name != "" and not os.path.isfile(photo_name):
|
||||||
if cl:
|
if cl:
|
||||||
print "Warning: media file %s was not found." \
|
print "Warning: media file %s was not found." \
|
||||||
% os.path.basename(photo_name)
|
% os.path.basename(photo_name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user