changeset 169:5ad37eeecc76

text_x_arnica: removed keyword secret
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Mon, 14 Jul 2008 19:05:14 +0200
parents cf3fef32a87b
children a489fd432404
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Mon Jul 14 18:58:19 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Mon Jul 14 19:05:14 2008 +0200
@@ -32,7 +32,6 @@
 
 parser_name = __name__.split('.')[-1]
 
-secret = 'arnica'
 
 class _DataBrowserWidget(DataBrowserWidget):
     """ we have to remove the used form in format otherwise the needed form elements
@@ -398,15 +397,15 @@
             if ext in ('.gif', '.png'):
                 self.imgtype.append('PNG')
                 file_name = 'tmp.webnail_%s.png' % fname
-                webnail = cache.key(self.request, itemname=self.pagename, attachname=attfile, secret=secret) + 'W'
+                webnail = cache.key(self.request, itemname=self.pagename, attachname=attfile) + 'W'
                 file_name = 'tmp.thumbnail_%s.png' % fname
-                thumbfile = cache.key(self.request, itemname=self.pagename, attachname=attfile, secret=secret) + 'T'
+                thumbfile = cache.key(self.request, itemname=self.pagename, attachname=attfile) + 'T'
             else:
                 self.imgtype.append("JPEG")
                 file_name = 'tmp.webnail_%s.jpg' % fname
-                webnail = cache.key(self.request, itemname=self.pagename, attachname=attfile, secret=secret) + 'W'
+                webnail = cache.key(self.request, itemname=self.pagename, attachname=attfile) + 'W'
                 file_name = 'tmp.thumbnail_%s.jpg' % fname
-                thumbfile = cache.key(self.request, itemname=self.pagename, attachname=attfile, secret=secret) + 'T'
+                thumbfile = cache.key(self.request, itemname=self.pagename, attachname=attfile) + 'T'
 
             att_file = os.path.join(path, attfile)
             if os.path.exists(att_file):