diff MoinMoin/action/AttachFile.py @ 1986:3475126f78c6

fix some builtin names used as attribute names
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 09 Apr 2007 22:06:09 +0200
parents 3bc30cdc4555
children 07aff6369476
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py	Mon Apr 09 07:38:09 2007 +0000
+++ b/MoinMoin/action/AttachFile.py	Mon Apr 09 22:06:09 2007 +0200
@@ -412,13 +412,13 @@
         scriptName = request.getScriptname()
         pagename_quoted = wikiutil.quoteWikinameURL(pagename)
 
-        for file in files:
+        for fname in files:
             url = "%s/%s?action=%s&do=view&target=%s" % (
                 scriptName, pagename_quoted,
-                action_name, wikiutil.url_quote_plus(file))
+                action_name, wikiutil.url_quote_plus(fname))
 
             request.write(u'<link rel="Appendix" title="%s" href="%s">\n' % (
-                wikiutil.escape(file), wikiutil.escape(url)))
+                wikiutil.escape(fname), wikiutil.escape(url)))
 
 
 def send_hotdraw(pagename, request):