index 69a064a6739c36752d279f30bf8fda1049bd09ed..38ed9c34b2874624122396dfb7646d261cff6832 100755 (executable)
--- a/scripts/roundup-reminder
+++ b/scripts/roundup-reminder
-#! /usr/bin/env python2.2
+#! /usr/bin/env python
# Copyright (c) 2002 ekit.com Inc (http://www.ekit-inc.com/)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
-# $Id: roundup-reminder,v 1.8 2004-02-11 00:21:46 richard Exp $
-
'''
Simple script that emails all users of a tracker with the issues that
are currently assigned to them.
body = part.startbody('text/plain')
# do the plain text bit
- print >>body, 'Created ID Urgency Title'
+ print >>body, 'Created ID Activity Title'
print >>body, '='*75
# '2 months 213 immediate cc_daemon barfage
old_priority = None
old_priority = priority
print >>body, ' ', db.priority.get(priority,'name')
# pretty creation
- creation = (date.Date('.') - creation_date).pretty()
+ creation = (creation_date - date.Date('.')).pretty()
if creation is None:
creation = creation_date.pretty()
- activity = (date.Date('.') - activity_date).pretty()
+ activity = (activity_date - date.Date('.')).pretty()
title = db.issue.get(issue_id, 'title')
if len(title) > 42:
title = title[:38] + ' ...'
print >>body, '<tr><td>-></td><td>-></td><td>-></td><td><b>%s</b></td></tr>'%db.priority.get(priority,'name')
creation = (date.Date('.') - creation_date).pretty()
if creation is None:
- creation = creation_date.pretty()
+ creation = (creation_date - date.Date('.')).pretty()
title = db.issue.get(issue_id, 'title')
issue_id = '<a href="%sissue%s">%s</a>'%(db.config.TRACKER_WEB,
issue_id, issue_id)
- activity = (date.Date('.') - activity_date).pretty()
+ activity = (activity_date - date.Date('.')).pretty()
print >>body, '''<tr><td>%s</td><td>%s</td><td>%s</td>
<td>%s</td></tr>'''%(creation, issue_id, activity, title)
print >>body, '</table>'