X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=roundup%2Froundupdb.py;h=4ad3eb952cad36a928fdbeafe826141ce7ae8a7e;hb=440516d7e3f248dce4464fb93d9cfa8ff3d342ad;hp=1baf624872ea59fae91186409ab58556b81b20e1;hpb=dff2f00ffa5e2c86960e547ef9e884c5990fae38;p=roundup.git diff --git a/roundup/roundupdb.py b/roundup/roundupdb.py index 1baf624..4ad3eb9 100644 --- a/roundup/roundupdb.py +++ b/roundup/roundupdb.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: roundupdb.py,v 1.66 2002-09-10 03:01:18 richard Exp $ +# $Id: roundupdb.py,v 1.68 2002-09-11 02:20:35 richard Exp $ __doc__ = """ Extending hyperdb with types specific to issue-tracking. @@ -46,9 +46,11 @@ class MessageSendError(RuntimeError): pass class DetectorError(RuntimeError): + ''' Raised by detectors that want to indicate that something's amiss + ''' pass -# XXX deviation from spec - was called ItemClass +# deviation from spec - was called IssueClass class IssueClass: """ This class is intended to be mixed-in with a hyperdb backend implementation. The backend should provide a mechanism that @@ -134,7 +136,7 @@ class IssueClass: # send the message self.send_message(nodeid, msgid, note, sendto) - # XXX backwards compatibility - don't remove + # backwards compatibility - don't remove sendmessage = nosymessage def send_message(self, nodeid, msgid, note, sendto): @@ -285,7 +287,6 @@ class IssueClass: def email_signature(self, nodeid, msgid): ''' Add a signature to the e-mail with some useful information ''' - # simplistic check to see if the url is valid, # then append a trailing slash if it is missing base = self.db.config.TRACKER_WEB @@ -294,7 +295,7 @@ class IssueClass: "fully-qualified URL" elif base[-1] != '/' : base += '/' - web = base + 'issue'+ nodeid + web = base + self.classname + nodeid # ensure the email address is properly quoted email = straddr((self.db.config.TRACKER_NAME,