summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ce0b839)
raw | patch | inline | side by side (parent: ce0b839)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 21 Oct 2001 00:45:15 +0000 (00:45 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 21 Oct 2001 00:45:15 +0000 (00:45 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@318 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup-admin | patch | blob | history | |
roundup/roundupdb.py | patch | blob | history |
diff --git a/roundup-admin b/roundup-admin
index ff200d0465f1566f4a8ae52f5ba41390a75458d2..176ab71fa94504bf3671533703893d04624553dd 100755 (executable)
--- a/roundup-admin
+++ b/roundup-admin
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: roundup-admin,v 1.35 2001-10-20 11:58:48 richard Exp $
+# $Id: roundup-admin,v 1.36 2001-10-21 00:45:15 richard Exp $
import sys
if int(sys.version[0]) < 2:
# do the command
try:
- return function(args[1:])
+ return function(self, args[1:])
finally:
self.db.close()
#
# $Log: not supported by cvs2svn $
+# Revision 1.35 2001/10/20 11:58:48 richard
+# Catch errors in login - no username or password supplied.
+# Fixed editing of password (Password property type) thanks Roch'e Compaan.
+#
# Revision 1.34 2001/10/18 02:16:42 richard
# Oops, committed the admin script with the wierd #! line.
# Also, made the thing into a class to reduce parameter passing.
diff --git a/roundup/roundupdb.py b/roundup/roundupdb.py
index 599d1886c587b10f5516a340e2dbcc41ea308847..d70404c0417b1d3e288ffe06cd2dea2c6d7b7f13 100644 (file)
--- a/roundup/roundupdb.py
+++ b/roundup/roundupdb.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: roundupdb.py,v 1.12 2001-10-04 02:16:15 richard Exp $
+# $Id: roundupdb.py,v 1.13 2001-10-21 00:45:15 richard Exp $
import re, os, smtplib, socket
sendto = [self.db.user.get(i, 'address') for i in recipients]
cn = self.classname
title = self.get(nodeid, 'title') or '%s message copy'%cn
+ # figure author information
+ authname = self.db.user.get(authid, 'realname')
+ if not authname:
+ authname = self.db.user.get(authid, 'username')
+ authaddr = self.db.user.get(authid, 'address')
+ if authaddr:
+ authaddr = '<%s> '%authaddr
+ else:
+ authaddr = ''
+ # TODO attachments
m = ['Subject: [%s%s] %s'%(cn, nodeid, title)]
m.append('To: %s'%', '.join(sendto))
m.append('Reply-To: %s'%self.ISSUE_TRACKER_EMAIL)
m.append('')
+ # add author information
+ m.append("%s %sadded the comment:"%(authname, authaddr))
+ m.append('')
+ # add the content
m.append(self.db.msg.get(msgid, 'content'))
+ # "list information" footer
m.append(self.email_footer(nodeid, msgid))
- # TODO attachments
try:
smtp = smtplib.SMTP(self.MAILHOST)
smtp.sendmail(self.ISSUE_TRACKER_EMAIL, sendto, '\n'.join(m))
#
# $Log: not supported by cvs2svn $
+# Revision 1.12 2001/10/04 02:16:15 richard
+# Forgot to pass the protected flag down *sigh*.
+#
# Revision 1.11 2001/10/04 02:12:42 richard
# Added nicer command-line item adding: passing no arguments will enter an
# interactive more which asks for each property in turn. While I was at it, I