Changeset 13:f1f11159dbed in mailjam for postman/daemon.py


Ignore:
Timestamp:
May 21, 2012, 11:55:26 AM (10 years ago)
Author:
Borja Lopez <borja@…>
Branch:
default
Phase:
public
Message:

Added first version of the project documentation. Inside docs/src there is
the sphinx [1] project we use to manage the docs. Inside docs/html there is
a copy of the docs in html format.

Fixed some typos in the INSTALL file

Added two new parameters to the postman.conf file (both the example config
file inside conf/ and the one used for testing in postman/tests/). These
parameters do nothing yet (they are related to ssl stuff) but we do talk
about them in the docs.

Added a new method to the XMLRPC list of methods related to members.

[1] http://sphinx.pocoo.org

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postman/daemon.py

    r10 r13  
    164164        self.postman.add_mailing_list(info)
    165165    def addresses(self):
    166         return self.postman.mailings_addresses
     166        return self.postman.mailings_addresses   
    167167
    168168
     
    173173    def add(self, member_addr=None, list_addr=None):
    174174        self.postman.add_mailing_member(member_addr, list_addr)
    175    
    176 
    177    
     175    def list(self, mailing):
     176        if mailing in self.postman.mailings_addresses:
     177            return self.postman.mailings[mailing].members_addresses()
     178
     179
    178180class PostmanDaemon():
    179181    def __init__(self, configfile=None):
Note: See TracChangeset for help on using the changeset viewer.