~ferama/cgmail/dev-branch

« back to all changes in this revision

Viewing changes to cGmail/lib/XMLAccounts.py

  • Committer: Marco Ferragina
  • Date: 2007-12-01 16:30:38 UTC
  • Revision ID: marco.ferragina@gmail.com-20071201163038-kdxczut00lt4k0u6
Fixed many bugs in labels checking. Gui cleaned up

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
class XMLAccounts(BaseAccountManager):
28
28
        def __init__(self):
29
 
                
30
29
                self.file = os.path.expanduser("~/.config/cgmail/accounts.xml")
31
30
                if not os.path.exists(self.file):
32
31
                        print "No xml config file found! Creating a default one..."
70
69
                        except:
71
70
                                print "Error in XMLAccounts.py at get_accounts_dict"
72
71
        
73
 
        def remove_account(self, id):
 
72
        def do_remove_account(self, id):
74
73
                """
75
74
                remove the account identified by id
76
75
                """
93
92
 
94
93
                                                # reload dic
95
94
                                                self.__dic = self.__node_to_dic(self.xmldoc)
96
 
 
97
95
                                                return
98
96
        
99
97
        def add_account(self, dic, force_id = None):