Database saving

svn: r2927
This commit is contained in:
Don Allingham
2004-02-28 20:15:48 +00:00
parent 9b0827745c
commit f60a720646
7 changed files with 38 additions and 85 deletions

View File

@ -61,8 +61,8 @@ def import_media_object(filename,path,base):
type = Utils.get_mime_type(filename)
if type[0:5] == "image":
name = "%s/%s%s" % (path,base,ext)
thumb = "%s/.thumb" % (path)
name = "%s/%s%s" % (os.path.dirname(path),base,ext)
thumb = "%s/.thumb" % (os.path.dirname(path))
try:
if not os.path.exists(thumb):