Changeset 10:d5329a2a05b7 in mailjam for postman/daemon.py


Ignore:
Timestamp:
May 20, 2012, 9:39:51 AM (12 years ago)
Author:
Borja Lopez <borja@…>
Branch:
default
Phase:
public
Message:

Fully added support for the configuration file. Now all the code uses
postman.conf to read the configuration parameters from it

Added a tests/postman.conf configuration file with specific configurtion
to use while testing (mostly tmp paths)

Updated the run_tests script to delete the temporary directory where
data is saved while running tests

Updated the tests modules/files so they use the tests config file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postman/daemon.py

    r9 r10  
    9191           'address' not in info.keys() or \
    9292           'members' not in info.keys() or \
    93            'config' not in info.keys():
     93           'configfile' not in info.keys():
    9494            raise ValueError(info, ' does not seem to be a valid configuration')
    9595       
     
    9999
    100100        mailing = MailingList(info['name'], info['address'],
    101                               info['members'], info['config'])       
     101                              info['members'], info['configfile'])
    102102        self.mailings[mailing.address] = mailing
    103103        self.mailings_addresses.append(mailing.address)
Note: See TracChangeset for help on using the changeset viewer.