Image handling fixes

svn: r1284
This commit is contained in:
Don Allingham
2003-02-03 19:24:27 +00:00
parent f7fea013a9
commit 0aa3cce886
15 changed files with 171 additions and 44 deletions

View File

@ -400,7 +400,7 @@ def birthday(person):
def thumb_path(dir,mobj):
type = mobj.getMimeType()
if type[0:5] == "image":
thumb = "%s/.thumb/%s.jpg" % (dir,mobj.getId())
thumb = "%s/.thumb/%s.jpg" % (dir,mobj.getId())
try:
if RelImage.check_thumb(mobj.getPath(),thumb,const.thumbScale):
return thumb