ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FreeBSDAdmin/Reminder/bank.py
(Generate patch)

Comparing FreeBSDAdmin/Reminder/bank.py (file contents):
Revision 1179 by douglas, 2009-05-19T16:53:29-07:00 vs.
Revision 1229 by douglas, 2009-10-03T22:58:25-07:00

# Line 9 | Line 9 | class Bank(object):
9                  self.__config = config
10  
11          def accounts(self):
12 <                return map(lambda account: tuple(account.split(':', 1)), self.__config.getlist('accounts'))
12 >                return map(lambda account: (account[0], int(account[1])), map(lambda account: tuple(account.split(':', 1)), self.__config.getlist('accounts')))
13  
14          def download(self, account):
15                  raise NotImplementedError
# Line 18 | Line 18 | class Bank(object):
18                  raise NotImplementedError
19  
20          def _username(self):
21 <                return self.__config.get('username')
21 >                return self.__config.getusername()
22  
23          def _password(self):
24 <                return self.__config.getpassword('password')
24 >                return self.__config.getpassword()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines