Changeset 2

Show
Ignore:
Timestamp:
12/10/06 03:31:45 (2 years ago)
Author:
amcgregor
Message:

Added callable support for the and properties of Message, as per #1.

Location:
trunk/turbomail
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/turbomail/__init__.py

    r1 r2  
    277277                   smptfrom as a message property.  Thanks James! 
    278278                 
    279                 More patches are welcome! 
     279        Version 2.0.3 
     280        ------------- 
     281                 - The plain and rich properties of the Message class can now 
     282                   be callables, executed at delivery-time. 
    280283 
    281284@var _queue: After TurboGears startup within an application which has 
  • trunk/turbomail/message.py

    r1 r2  
    227227                        Charset.add_charset('utf-8', Charset.SHORTEST, Charset.QP, 'utf-8') 
    228228                        self.encoding = 'utf-8' 
     229 
     230                if callable(self.plain): 
     231                        self.plain = self.plain() 
     232 
     233                if callable(self.rich): 
     234                        self.rich = self.rich() 
    229235                 
    230236                if self.rich and not self.plain: 
  • trunk/turbomail/release.py

    r1 r2  
    33"""Release information about the Turbo-Mail mail queue.""" 
    44 
    5 version = "2.0.2" 
     5version = "2.0.3" 
    66description = "Multi-threaded mail queue manager for TurboGears applications." 
    77author = "Top Floor Computer Systems Ltd."