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 | | |