Changeset 24 for branches

Show
Ignore:
Timestamp:
10/16/07 02:31:22 (1 year ago)
Author:
amcgregor
Message:

Updated spelling as per ticket #13.

Location:
branches/2.0.5/turbomail
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • branches/2.0.5/turbomail/__init__.py

    r3 r24  
    2323                Throughput using the default options is sufficient for most use: 
    2424                100 messages in 45 seconds; just over 2 messages a second. Using 
    25                 a greater number of threads, 10 vs. 4, 100 messags take 30 
     25                a greater number of threads, 10 vs. 4, 100 messages take 30 
    2626                seconds; just over 3 messages a second.  YMMV.  Note that if a 
    2727                thread is idle, it will immediately deliver requests added to 
     
    8282                 - I{mail.timeout} (Default: B{60}) Maximum time a worker thread 
    8383                   will wait for additional jobs, in seconds. 
    84                  - I{mail.tls} (Defalut: None) Enable or disable TLS, None will 
     84                 - I{mail.tls} (Default: None) Enable or disable TLS, None will 
    8585                   attempt to auto-detect TLS.  This will not always work. 
    8686                 - I{mail.encoding} (Default: B{'us-ascii'}) Set the character 
     
    9595                    - utf-8-qp - I{Sets utf-8 to use quoted-printable encoding.} 
    9696                   Headers are not encoded.  DIY. 
    97                  - I{mail.polling} (Defaut: B{False}) If enabled, configures the 
     97                 - I{mail.polling} (Default: B{False}) If enabled, configures the 
    9898                   thread pool to poll every I{mail.interval} seconds for new 
    9999                   jobs.  This may give performance benefits to the running 
     
    138138 
    139139        Additionally, you can configure your application to log TurboMail 
    140         events differently, in a more loggable and machine parsable way. 
     140        events differently, in a more loggable and machine parseable way. 
    141141        You do so by adding the following lines to the formatters section 
    142142        of your log.cfg:: 
  • branches/2.0.5/turbomail/dispatch.py

    r9 r24  
    4646                @type username: string 
    4747                 
    48                 @param password: The password to use during authentaction. 
     48                @param password: The password to use during authentication. 
    4949                         I{Optional.} 
    5050                @type password: string 
     
    7878                 
    7979                This process also automatically enables TLS, if available, and 
    80                 authenticates against the username and password previousally 
     80                authenticates against the username and password previously 
    8181                provided. 
    8282                """ 
     
    119119                debug mode has been enabled. 
    120120                 
    121                 @param message: This paramater must be a callable which returns 
     121                @param message: This parameter must be a callable which returns 
    122122                                a tuple of (from, to, message), where all three 
    123123                                are strings, and message is valid content for an 
  • branches/2.0.5/turbomail/message.py

    r14 r24  
    222222                """Produce the final MIME message. 
    223223                 
    224                 Additinoally, if only a rich text part exits, strip the HTML to 
     224                Additionally, if only a rich text part exits, strip the HTML to 
    225225                produce the plain text part.  (This produces identical output as 
    226226                KID, although lacks reverse entity conversion -- &, etc.) 
     
    388388         
    389389        def __init__(self, sender, recipient, subject, template, variables={}, **kw): 
    390                 """Store the additonal template and variable information. 
     390                """Store the additional template and variable information. 
    391391                 
    392392                @param template: A dot-path to a valid KID template. 
  • branches/2.0.5/turbomail/pool.py

    r10 r24  
    1616 
    1717class Pool(Thread): 
    18         """A threadpool which checks regularily for new jobs and spawns processes 
     18        """A thread pool which checks regularly for new jobs and spawns processes 
    1919        as needed. 
    2020         
     
    2424         
    2525        def __init__(self, interval=10, threads=4, jobs=10, timeout=60, polling=False, **kw): 
    26                 """Initialize the threadpool. 
     26                """Initialize the thread pool. 
    2727                 
    2828                @param interval: A delay, in seconds, between spawn runs. 
     
    7272                @param block: Block code execution until there is a free slot in 
    7373                              the queue.  If I{block} is True and I{timeout} is 
    74                               None, block indefinately. 
     74                              None, block indefinitely. 
    7575                @type block: bool 
    7676                 
     
    147147        def worker(self): 
    148148                """This method must be overridden in a subclass and is used to 
    149                 perform the work of the threadpool. 
     149                perform the work of the thread pool. 
    150150                 
    151151                Will raise a NotImplementedError exception if not subclassed.""" 
     
    155155 
    156156class MailPool(Pool): 
    157         """Mail delivery threadpool. 
     157        """Mail delivery thread pool. 
    158158         
    159159        This class delivers messages from a queue using the Dispatch class.