Changes between Version 63 and Version 64 of AnnouncerPlugin


Ignore:
Timestamp:
Oct 17, 2012 10:32:32 PM (22 months ago)
Author:
hasienda
Comment:

move anonymous patch to more appropriate place in ticket system for tracking and resolution, see #9106

Legend:

Unmodified
Added
Removed
Modified
  • AnnouncerPlugin

    v63 v64  
    225225== Development Version == 
    226226 
    227 The trunk branch is under development again. Despite AnnouncerPlugin was already developed against Trac 0.12 and Python2.6 before, we're reaching back to Trac 0.11 and Python2.4 again, before branching out and following Trac 1.0 for all great new features. 
     227The trunk branch is under development again. Despite AnnouncerPlugin was already developed against Trac 0.12 and Python2.6 before, we're reaching back to Trac 0.11 and Python2.4 again (see #9106), before branching out and following Trac 1.0 for all great new features. 
    228228 
    229229 and changes a number of things, ! 
     
    342342}}} 
    343343 
    344 === Python 2.4 (Centos 5.4) === 
    345 in order to run this plugin on Python 2.4 I had to modify it slightly: 
    346  
    347 {{{ 
    348 [user@host]# svn diff 
    349 Index: announcer/api.py 
    350 =================================================================== 
    351 --- announcer/api.py    (revision 9736) 
    352 +++ announcer/api.py    (working copy) 
    353 @@ -351,7 +351,8 @@ 
    354          others are skipped. 
    355          """ 
    356          # sort by dist, sid, authenticated, priority 
    357 -        ordered_subs = sorted(subscriptions, key=itemgetter(1,2,3,6)) 
    358 +        subscriptions.sort(key=lambda i:(i[1],i[2],i[3],i[6])) 
    359   
    360          resolved_subs = [] 
    361   
    362 @@ -359,7 +360,8 @@ 
    363          state = { 
    364              'last': None 
    365          } 
    366 -        for s in ordered_subs: 
    367 +        for s in subscriptions: 
    368              if (s[1], s[2], s[3]) == state['last']: 
    369                  continue 
    370              if s[-1] == 'always': 
    371 Index: announcer/opt/acct_mgr/announce.py 
    372 =================================================================== 
    373 --- announcer/opt/acct_mgr/announce.py  (revision 9736) 
    374 +++ announcer/opt/acct_mgr/announce.py  (working copy) 
    375 @@ -87,7 +87,7 @@ 
    376                  yield subscriber 
    377   
    378      def matches(self, event): 
    379 -        yield 
    380 +        yield () 
    381   
    382      def description(self): 
    383          return 'notify me an account changes NOT IMPLEMENTED' 
    384 Index: announcer/opt/bitten/announce.py 
    385 =================================================================== 
    386 --- announcer/opt/bitten/announce.py    (revision 9736) 
    387 +++ announcer/opt/bitten/announce.py    (working copy) 
    388 @@ -90,7 +90,7 @@ 
    389                      yield subscriber 
    390   
    391      def matches(self, event): 
    392 -        yield 
    393 +        yield () 
    394   
    395      def description(self): 
    396          return 'notify me bitten changes NOT IMPLEMENTED' 
    397 Index: announcer/email_decorators.py 
    398 =================================================================== 
    399 --- announcer/email_decorators.py       (revision 9736) 
    400 +++ announcer/email_decorators.py       (working copy) 
    401 @@ -29,7 +29,7 @@ 
    402  import re 
    403  import trac 
    404   
    405 -from email.utils import parseaddr 
    406 +from email.Utils import parseaddr 
    407   
    408  from trac.config import ListOption, Option 
    409  from trac.core import * 
    410 }}} 
    411  
    412344== Recent Changes == 
    413345