changeset 1151:056cd240cff9

mailimport: display only filename (not pagename) in overview table column
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 09 Aug 2006 23:08:22 +0200
parents f1b0ce6fb5c7
children acf14d68b7c8
files MoinMoin/mail/mailimport.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/mail/mailimport.py	Wed Aug 09 22:54:44 2006 +0200
+++ b/MoinMoin/mail/mailimport.py	Wed Aug 09 23:08:22 2006 +0200
@@ -206,7 +206,7 @@
                 break
 
     # build an attachment link table for the page with the e-mail
-    attachment_links = [""] + [u'''[attachment:"%s" attachment:"%s"]''' % tuple([u"%s/%s" % (pagename, x)] * 2) for x in attachments]
+    attachment_links = [""] + [u'''[attachment:"%s/%s" %s]''' % (pagename, att, att) for att in attachments]
 
     # assemble old page content and new mail body together
     old_content = Page(request, pagename).get_raw_body()