changeset 247:809f2840ae46

text_x_arnica: given width encoded into cache files
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Mon, 08 Sep 2008 08:57:53 +0200
parents f7a67224bf69
children f3b5e355ab3a
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Sun Sep 07 23:39:53 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Mon Sep 08 08:57:53 2008 +0200
@@ -343,8 +343,8 @@
             self.high_resolution_image.append(attfile)
             fname, ext = os.path.splitext(attfile)
             key = cache.key(self.request, itemname=self.pagename, attachname=attfile)
-            webnail = 'W' + key
-            thumbfile = 'T' + key
+            webnail = 'W_%s_%s' % (self.webnail_width, key)
+            thumbfile = 'T_%s_%s' % (self.thumbnail_width, key)
             if ext in ('.gif', '.png'):
                 self.imgtype.append('PNG')
             else: