Edgewall Software

Changes between Version 3 and Version 4 of TracDev/PluginDevelopment/ExtensionPoints/trac.notification.api.INotificationDistributor


Ignore:
Timestamp:
May 3, 2017, 11:37:16 AM (2 years ago)
Author:
jschulz@…
Comment:

corrected API usage of INotificationFormatter

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/PluginDevelopment/ExtensionPoints/trac.notification.api.INotificationDistributor

    v3 v4  
    5959            formatter = None
    6060            for f in self.formatters:
    61                 for style in f.styles(transport, event.realm):
    62                     if style == format:
     61                for style, realm in f.get_supported_styles(transport):
     62                    if style == format and realm == event.realm:
    6363                        formatter = f
    6464            if formatter: