Continued work on GEP008: move src/Mime to src/gen/mime.

svn: r14118
This commit is contained in:
Brian Matherly
2010-01-24 20:17:14 +00:00
parent 09b0e50d41
commit cd30f4db2f
20 changed files with 80 additions and 172 deletions

View File

@ -38,7 +38,7 @@ import re
#
#-------------------------------------------------------------------------
from QuestionDialog import ErrorDialog, WarningDialog
import Mime
import gen.mime
import gen.lib
import Utils
import DateHandler
@ -1678,7 +1678,7 @@ class GrampsParser(UpdateCallback):
attr.set_type(key)
attr.set_value(attrs[key])
self.photo.add_attribute(attr)
self.photo.set_mime_type(Mime.get_type(self.photo.get_path()))
self.photo.set_mime_type(gen.mime.get_type(self.photo.get_path()))
self.db.add_object(self.photo, self.trans)
#set correct change time
self.db.commit_media_object(self.photo, self.trans, self.change)