"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "share/roundup/templates/classic/detectors/messagesummary.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).

messagesummary.py  (roundup-1.6.1):messagesummary.py  (roundup-2.0.0)
from roundup.mailgw import parseContent from roundup.mailgw import parseContent
def summarygenerator(db, cl, nodeid, newvalues): def summarygenerator(db, cl, nodeid, newvalues):
''' If the message doesn't have a summary, make one for it. ''' If the message doesn't have a summary, make one for it.
''' '''
if newvalues.has_key('summary') or not newvalues.has_key('content'): if 'summary' in newvalues or 'content' not in newvalues:
return return
summary, content = parseContent(newvalues['content'], config=db.config) summary, content = parseContent(newvalues['content'], config=db.config)
newvalues['summary'] = summary newvalues['summary'] = summary
def init(db): def init(db):
# fire before changes are made # fire before changes are made
db.msg.audit('create', summarygenerator) db.msg.audit('create', summarygenerator)
# vim: set filetype=python ts=4 sw=4 et si # vim: set filetype=python ts=4 sw=4 et si
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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