comparison roundup/roundupdb.py @ 1103:db787cef1385

handled some XXXs
author Richard Jones <richard@users.sourceforge.net>
date Tue, 10 Sep 2002 12:44:42 +0000
parents fa7df238e2d4
children 70f187da3cf2
comparison
equal deleted inserted replaced
1102:d94bd5369456 1103:db787cef1385
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 # $Id: roundupdb.py,v 1.66 2002-09-10 03:01:18 richard Exp $ 18 # $Id: roundupdb.py,v 1.67 2002-09-10 12:44:42 richard Exp $
19 19
20 __doc__ = """ 20 __doc__ = """
21 Extending hyperdb with types specific to issue-tracking. 21 Extending hyperdb with types specific to issue-tracking.
22 """ 22 """
23 23
44 44
45 class MessageSendError(RuntimeError): 45 class MessageSendError(RuntimeError):
46 pass 46 pass
47 47
48 class DetectorError(RuntimeError): 48 class DetectorError(RuntimeError):
49 ''' Raised by detectors that want to indicate that something's amiss
50 '''
49 pass 51 pass
50 52
51 # XXX deviation from spec - was called ItemClass 53 # deviation from spec - was called IssueClass
52 class IssueClass: 54 class IssueClass:
53 """ This class is intended to be mixed-in with a hyperdb backend 55 """ This class is intended to be mixed-in with a hyperdb backend
54 implementation. The backend should provide a mechanism that 56 implementation. The backend should provide a mechanism that
55 enforces the title, messages, files, nosy and superseder 57 enforces the title, messages, files, nosy and superseder
56 properties: 58 properties:
132 messages.set(msgid, recipients=recipients) 134 messages.set(msgid, recipients=recipients)
133 135
134 # send the message 136 # send the message
135 self.send_message(nodeid, msgid, note, sendto) 137 self.send_message(nodeid, msgid, note, sendto)
136 138
137 # XXX backwards compatibility - don't remove 139 # backwards compatibility - don't remove
138 sendmessage = nosymessage 140 sendmessage = nosymessage
139 141
140 def send_message(self, nodeid, msgid, note, sendto): 142 def send_message(self, nodeid, msgid, note, sendto):
141 '''Actually send the nominated message from this node to the sendto 143 '''Actually send the nominated message from this node to the sendto
142 recipients, with the note appended. 144 recipients, with the note appended.

Roundup Issue Tracker: http://roundup-tracker.org/