changeset 1579:134062b3d442

mailimport: move date column to the left
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 18 Sep 2006 23:17:08 +0200
parents f5f7f1b84851
children 1393f9e111f4
files MoinMoin/mail/mailimport.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/mail/mailimport.py	Mon Sep 18 23:01:13 2006 +0200
+++ b/MoinMoin/mail/mailimport.py	Mon Sep 18 23:17:08 2006 +0200
@@ -272,10 +272,10 @@
 
         # in order to let the gettext system recognise the [[GetText]] calls used below,
         # we must repeat them here:
-        [_("From"), _("To"), _("Content"), _("Date"), _("Attachments")]
+        [_("Date"), _("From"), _("To"), _("Content"), _("Attachments")]
 
         table_header = (u"\n\n## mail_overview (don't delete this line)\n" +
-                        u"|| '''[[GetText(From)]] ''' || '''[[GetText(To)]] ''' || '''[[GetText(Content)]] ''' || '''[[GetText(Date)]] ''' || '''[[GetText(Attachments)]] ''' ||\n"
+                        u"|| '''[[GetText(Date)]] ''' || '''[[GetText(From)]] ''' || '''[[GetText(To)]] ''' || '''[[GetText(Content)]] ''' || '''[[GetText(Attachments)]] ''' ||\n"
                        )
 
         from_col = email_to_markup(request, msg['from_addr'])
@@ -284,7 +284,7 @@
         subj_col = '[%s %s]' % (wikiutil.quoteName(pagename), msg['subject'])
         date_col = msg['date']
         attach_col = " ".join(attachment_links)
-        new_line = u'|| %s || %s || %s || [[DateTime(%s)]] || %s ||' % (from_col, to_col, subj_col, date_col, attach_col)
+        new_line = u'|| [[DateTime(%s)]] || %s || %s || %s || %s ||' % (date_col, from_col, to_col, subj_col, attach_col)
         if found_table is not None:
             content = "\n".join(old_content[:table_ends] + [new_line] + old_content[table_ends:])
         else: