From b4e4c1feefd149acbd5a2be2483b0cee3a90e0c7 Mon Sep 17 00:00:00 2001 From: Patrick Ulbrich Date: Fri, 30 May 2014 14:16:40 +0200 Subject: [PATCH] changed account section names to lowercase --- Mailnag/common/accounts.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Mailnag/common/accounts.py b/Mailnag/common/accounts.py index 1cc163c..57c193b 100644 --- a/Mailnag/common/accounts.py +++ b/Mailnag/common/accounts.py @@ -179,7 +179,7 @@ class AccountList(list): del self[:] i = 1 - section_name = "Account" + str(i) + section_name = "account" + str(i) while cfg.has_section(section_name): enabled = bool(int( self._get_account_cfg(cfg, section_name, 'enabled') )) @@ -201,22 +201,22 @@ class AccountList(list): self.append(acc) i = i + 1 - section_name = "Account" + str(i) + section_name = "account" + str(i) def save_to_cfg(self, cfg): # remove existing accounts from cfg i = 1 - section_name = "Account" + str(i) + section_name = "account" + str(i) while cfg.has_section(section_name): cfg.remove_section(section_name) i = i + 1 - section_name = "Account" + str(i) + section_name = "account" + str(i) # add accounts i = 1 for acc in self: - section_name = "Account" + str(i) + section_name = "account" + str(i) cfg.add_section(section_name)