Changes between Version 3 and Version 4 of TracDev/Proposals/AdvancedNotification/NotificationApi
- Timestamp:
- Nov 29, 2014, 7:00:25 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/Proposals/AdvancedNotification/NotificationApi
v3 v4 4 4 5 5 == Old API 6 ''(since Trac 0.7, deprecated since Trac 1.1. 2)''6 ''(since Trac 0.7, deprecated since Trac 1.1.3)'' 7 7 8 8 The original notification API consisted mainly of a class hierarchy: … … 21 21 22 22 == New API 23 ''(since Trac 1.1. 2)''23 ''(since Trac 1.1.3)'' 24 24 25 25 The new API keeps the `IEmailSender` extension point entirely and the `NotificationSystem` component almost unchanged, but deprecates the entire `Notify` hierarchy. … … 34 34 === !NotificationEvent 35 35 Contains the following properties: 36 * `realm`: a string of the affected resource realm (e.g. 'ticket' or 'wiki')37 * `category`: a string to identify the category of event (e.g. 'created', 'changed' or 'deleted')36 * `realm`: a string of the affected resource realm (e.g. `'ticket'` or `'wiki'`) 37 * `category`: a string to identify the category of event (e.g. `'created'`, `'changed'` or `'deleted'`) 38 38 * `target`: the resource [wiki:TracDev/DataModels model] (e.g. an instance of `Ticket` or `WikiPage`) or `None` 39 39 * `time`: the `datetime` when the event happened … … 42 42 === !TicketChangeEvent 43 43 * `realm` is 'ticket'. 44 * Known values for `category` are 'created', 'changed'.44 * Known values for `category` are `'created'`, `'changed'`, `'attachment added'` and `'attachment deleted'`. 45 45 * `target` is an instance of `Ticket`. 46 46 * Additional properties: