"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "detectors/irker.py" between
roundup-1.6.1.tar.gz and roundup-2.0.0.tar.gz

About: Roundup is an highly customisable issue-tracking system with command-line, web and e-mail interfaces (written in Python).

irker.py  (roundup-1.6.1):irker.py  (roundup-2.0.0)
skipping to change at line 17 skipping to change at line 17
# Requires a running irkerd daemon to work. See the irker documentation # Requires a running irkerd daemon to work. See the irker documentation
# for more information about installing, configuring, and running irker. # for more information about installing, configuring, and running irker.
# #
# Add the IRC channel(s) that should receive notifications in # Add the IRC channel(s) that should receive notifications in
# detectors/config.ini as a comma-separated list, using this format: # detectors/config.ini as a comma-separated list, using this format:
# #
# [irker] # [irker]
# channels = irc://chat.freenode.net/channelname # channels = irc://chat.freenode.net/channelname
# #
from __future__ import print_function
import re import re
import json import json
import socket import socket
IRKER_HOST = 'localhost' IRKER_HOST = 'localhost'
IRKER_PORT = 6659 IRKER_PORT = 6659
max_content = 120 max_content = 120
TEMPLATE = ('%(green)s%(author)s%(reset)s ' TEMPLATE = ('%(green)s%(author)s%(reset)s '
skipping to change at line 95 skipping to change at line 96
'to': db.config.detectors.IRKER_CHANNELS.split(','), 'to': db.config.detectors.IRKER_CHANNELS.split(','),
'privmsg': TEMPLATE % params, 'privmsg': TEMPLATE % params,
}) })
try: try:
sendmsg(msg) sendmsg(msg)
except Exception as e: except Exception as e:
# Ignore any errors in sending the irker; # Ignore any errors in sending the irker;
# if the server is down, that's just bad luck # if the server is down, that's just bad luck
# XXX might want to do some logging here # XXX might want to do some logging here
print '* Sending message to irker failed', str(e) print('* Sending message to irker failed', str(e))
def init(db): def init(db):
db.issue.react('create', notify_irker) db.issue.react('create', notify_irker)
db.issue.react('set', notify_irker) db.issue.react('set', notify_irker)
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)