Changes between Version 52 and Version 53 of AnnouncerPlugin


Ignore:
Timestamp:
Jan 5, 2011 1:02:56 AM (4 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AnnouncerPlugin

    v52 v53  
    338338}}} 
    339339 
     340=== Python 2.4 (Centos 5.4) === 
     341in order to run this plugin on Python 2.4 I had to modify it slightly: 
     342 
     343{{{ 
     344[root@loft4846 announcerplugin_trunk]# svn diff 
     345Index: announcer/api.py 
     346=================================================================== 
     347--- announcer/api.py    (revision 9736) 
     348+++ announcer/api.py    (working copy) 
     349@@ -351,7 +351,8 @@ 
     350         others are skipped. 
     351         """ 
     352         # sort by dist, sid, authenticated, priority 
     353-        ordered_subs = sorted(subscriptions, key=itemgetter(1,2,3,6)) 
     354+        subscriptions.sort(key=lambda i:(i[1],i[2],i[3],i[6])) 
     355+        #ordered_subs = sorted(subscriptions, key=itemgetter(1,2,3,6)) 
     356  
     357         resolved_subs = [] 
     358  
     359@@ -359,7 +360,8 @@ 
     360         state = { 
     361             'last': None 
     362         } 
     363-        for s in ordered_subs: 
     364+        #for s in ordered_subs: 
     365+        for s in subscriptions: 
     366             if (s[1], s[2], s[3]) == state['last']: 
     367                 continue 
     368             if s[-1] == 'always': 
     369Index: announcer/email_decorators.py 
     370=================================================================== 
     371--- announcer/email_decorators.py       (revision 9736) 
     372+++ announcer/email_decorators.py       (working copy) 
     373@@ -29,7 +29,7 @@ 
     374 import re 
     375 import trac 
     376  
     377-from email.utils import parseaddr 
     378+from email.Utils import parseaddr 
     379  
     380 from trac.config import ListOption, Option 
     381 from trac.core import * 
     382}}} 
     383 
    340384== Recent Changes == 
    341385