Changes between Version 2 and Version 3 of TracDev/Proposals/AdvancedNotification/IEmailDecorator
- Timestamp:
- Oct 6, 2013, 10:39:43 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/Proposals/AdvancedNotification/IEmailDecorator
v2 v3 19 19 * `event`: A `trac.notification.api.NotificationEvent` instance describing the event about which the recipients should be notified. 20 20 * `message`: An `email.message.Message` to decorate. 21 * `charset`: A `email.charset.Charset` to use for headers. 21 22 22 23 == Examples == … … 35 36 # IEmailDecorator methods 36 37 37 def decorate_message(self, event, message ):38 set_header(message, 'X-Trac-Notification-Author', event.author )38 def decorate_message(self, event, message, charset): 39 set_header(message, 'X-Trac-Notification-Author', event.author, charset) 39 40 }}} 40 41 … … 52 53 * This interface originated in th:AnnouncerPlugin as `IAnnouncementEmailDecorator`. 53 54 * DONE Removed continuation-passing style (`next_decorator()`). 55 * DONE Added `charset` parameter.