Changeset 4594
- Timestamp:
- 10/26/08 23:57:25 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
hudsontracplugin/0.10/HudsonTrac/HudsonTracPlugin.py
r4593 r4594 7 7 import calendar 8 8 import feedparser 9 import urllib 9 10 from datetime import datetime 10 11 from trac.core import * … … 90 91 href = entry.link 91 92 title = entry.title 92 comment = message + ' at ' + format_datetime(completed) 93 94 url = href + '/api/json' 95 line = urllib.urlopen(url).readline() 96 json = eval(line.replace('false', 'False').replace('true','True').replace('null', 'None')) 97 98 if json['description'] == None: 99 comment = message + ' at ' + format_datetime(completed) 100 else: 101 comment = unicode(json['description'], 'utf-8') + ' at ' + format_datetime(completed) 93 102 94 103 yield kind, href, title, completed, None, comment
