changeset 10:cf462b039ccf

arnica_slides:fixed hiding of file
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 09 Mar 2008 18:35:30 +0100
parents 6fb3b03afe2e
children 7d73f63ca30e
files data/plugin/action/arnica_slides.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/arnica_slides.py	Sun Mar 09 18:31:21 2008 +0100
+++ b/data/plugin/action/arnica_slides.py	Sun Mar 09 18:35:30 2008 +0100
@@ -310,7 +310,7 @@
         """ Do the action and either return error msg or None, if there was no error. """
         return None
 
-    def image_rotate(self, file, webf, thumbf, angle, img_type):
+    def image_rotate(self, file_name, webf, thumbf, angle, img_type):
         """ rotates the image and dependent images
         
         @param file: the name of the attachment
@@ -326,12 +326,12 @@
             Page(self.request, self.pagename).send_page()
             return
         # image
-        im = Image.open(file)
-        os.remove(file)
-        im.rotate(angle).save(file, img_type)
+        im = Image.open(file_name)
+        os.remove(file_name)
+        im.rotate(angle).save(file_name, img_type)
 
         # image becomes webnail
-        nim = Image.open(file)
+        nim = Image.open(file_name)
         nim.thumbnail((640, 640), Image.ANTIALIAS)
         os.remove(webf)
         nim.save(webf, img_type)