1
class CannotSaveError: pass
3
class BaseAccountManager:
4
def get_accounts_dicts(self):
6
must return a list of accounts dictionaries
8
raise NotImplementedError()
9
def remove_account(self, id): raise NotImplementedError()
12
def update_account(self, id, dic):
14
Update account id with the new dic
16
self.remove_account(id)
17
self.add_account(dic, force_id = id)
19
def add_account(self, dic):
23
raise NotImplementedError()
25
def store_accounts_dicts(self, dicts):
27
Set the accounts dicts to dicts
30
self.add_account(account)
34
This method must reset the account manager.
35
After this method account manager store support
36
(xml file, gnome keyring) must be empty
38
raise NotImplementedError()