Changeset 13:f1f11159dbed in mailjam


Ignore:
Timestamp:
May 21, 2012, 11:55:26 AM (12 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

Files:
59 added
4 edited

Legend:

Unmodified
Added
Removed
  • INSTALL

    r12 r13  
    1010
    1111Postman has been tested with python *2.7.x*, but it should work with versions
    12 2.6.x too.
     12*2.6.x* too.
    1313
    1414Please, refer to your operating system package system documentation to learn
     
    5555     source /path/to/your/env/bin/activate.csh
    5656
    57 And, once the environment has been activated, using pip to install Postman::
     57And, once the environment has been activated, use pip to install Postman::
    5858
    5959  env$ pip install -e https://bitbucket.org/codigo23/postman#egg=postman
  • conf/postman.conf

    r8 r13  
    77port = 9876
    88ssl = false
     9ssl_key = /usr/local/etc/postman/ssl/postman.key
     10ssl_crt = /usr/local/etc/postman/ssl/postman.crt
    911logfile = /var/log/postman/xmlrpc_server.log
    1012
  • 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):
  • postman/tests/postman.conf

    r10 r13  
    99port = 9876
    1010ssl = false
     11ssl_key = /usr/local/etc/postman/ssl/postman.key
     12ssl_crt = /usr/local/etc/postman/ssl/postman.crt
    1113logfile = /tmp/postman-tests/xmlrpc_server.log
    1214
Note: See TracChangeset for help on using the changeset viewer.