Diff for /ImageArchive/ImageArchive.py between versions 1.91 and 1.92

version 1.91, 2006/05/22 20:20:17 version 1.92, 2006/05/22 21:09:53
Line 25  import Queue Line 25  import Queue
 import cgi  import cgi
 import sys  import sys
 import zLOG  import zLOG
   import shutil
   
 from AccessControl import ClassSecurityInfo, getSecurityManager  from AccessControl import ClassSecurityInfo, getSecurityManager
   
Line 515  class ImageDigilib(Folder,Persistent,Imp Line 515  class ImageDigilib(Folder,Persistent,Imp
                 zLOG.LOG("ImageArchive:scaleToJpg", zLOG.ERROR, "%s "%newName)                  zLOG.LOG("ImageArchive:scaleToJpg", zLOG.ERROR, "%s "%newName)
                 return False                  return False
                           
           ext= os.path.splitext(imagePath)[1].lower()
           if ext.rstrip()==".jpg":
           shutil.copy(newName,imagePath)
           print "copy",imagePath
               return True
           
                   print "SCALED",imagePath
         dest="/Volumes/paviaExtern/docuserver/images/exhibitionImages/"          dest="/Volumes/paviaExtern/docuserver/images/exhibitionImages/"
         dir=self.getId()          dir=self.getId()
     src=path      src=path

Removed from v.1.91  
changed lines
  Added in v.1.92


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>