From b545dfe13e01bfbb9f48acbd7ed84a093ea96c06 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Caruana Date: Thu, 7 Feb 2013 19:17:12 +0100 Subject: [PATCH] more readeable dict construct --- modoboa/extensions/webmail/views.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modoboa/extensions/webmail/views.py b/modoboa/extensions/webmail/views.py index 9eda0ab3c..ac4ddcf3f 100644 --- a/modoboa/extensions/webmail/views.py +++ b/modoboa/extensions/webmail/views.py @@ -117,15 +117,15 @@ def compact(request, name): def newfolder(request, tplname="webmail/folder.html"): mbc = IMAPconnector(user=request.user.username, password=request.session["password"]) - ctx = {"title" : _("Create a new mailbox"), - "formid" : "mboxform", - "action" : reverse(newfolder), - "action_label" : _("Create"), - "action_classes" : "submit", - "withunseen" : False, - "selectonly" : True} + ctx = {"title": _("Create a new mailbox"), + "formid": "mboxform", + "action": reverse(newfolder), + "action_label": _("Create"), + "action_classes": "submit", + "withunseen": False, + "selectonly": True, + "mboxes": mbc.getmboxes(request.user)} - ctx["mboxes"] = mbc.getmboxes(request.user) if request.method == "POST": form = FolderForm(request.POST) if form.is_valid():