ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FreeBSDAdmin/Reminder/bank.py
Revision: 1180
Committed: 2009-05-19T21:16:13-07:00 (16 years, 1 month ago) by douglas
Content type: text/x-python
File size: 523 byte(s)
Log Message:
Working Wesabe upload.

File Contents

# Content
1 # Bank
2 #
3 # Douglas Thrift
4 #
5 # $Id$
6
7 class Bank(object):
8 def __init__(self, config):
9 self.__config = config
10
11 def accounts(self):
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
16
17 def due(self, account):
18 raise NotImplementedError
19
20 def _username(self):
21 return self.__config.get('username')
22
23 def _password(self):
24 return self.__config.getpassword('password')

Properties

Name Value
svn:keywords Id