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

Comparing FreeBSDAdmin/Reminder/wesabe.py (file contents):
Revision 1178 by douglas, 2009-05-17T14:30:08-07:00 vs.
Revision 1179 by douglas, 2009-05-19T16:53:29-07:00

# Line 5 | Line 5
5   #
6   # $Id$
7  
8 import common
8   from M2Crypto import m2urllib2, SSL
9  
10   class Wesabe(object):
# Line 20 | Line 19 | class Wesabe(object):
19          def upload(self, name, filename, data, balance = None):
20                  print name, filename, balance
21  
22 < if __name__ == '__main__':
23 <        parser = common.OptionParser()
25 <        options = parser.parse_args()[0]
22 > def main(calendar, config, banks, debug):
23 >        wesabe = Wesabe(config.get('username'), config.getpassword('password'), debug)
24  
25 <        config, banks = common.config(parser, options, '.wesabe')
26 <        wesabe = Wesabe(config.get('wesabe', 'username'), common.decode(config.get('wesabe', 'password')), True)#options.debug)
25 >        for module in config.getlist('banks'):
26 >                bank = banks.bank(module)
27  
28 <        for bank, accounts in banks.iteritems():
29 <                bank = common.bank(bank, options, config)
32 <
33 <                for account in accounts:
34 <                        name, account = account.rsplit(' ', 1)
35 <
36 <                        wesabe.upload(name, *bank.download(account))
28 >                for name, account in bank.accounts():
29 >                        wesabe.upload(account, *bank.download(account))

Comparing FreeBSDAdmin/Reminder/wesabe.py (property svn:executable):
Revision 1178 by douglas, 2009-05-17T14:30:08-07:00 vs.
Revision 1179 by douglas, 2009-05-19T16:53:29-07:00

# Line 1 | Line 0
1 *

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines