|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
18 | | -# $Id: roundupdb.py,v 1.44 2002-02-15 07:08:44 richard Exp $ |
| 18 | +# $Id: roundupdb.py,v 1.45 2002-02-20 15:48:45 grubert Exp $ |
19 | 19 |
|
20 | 20 | __doc__ = """ |
21 | 21 | Extending hyperdb with types specific to issue-tracking. |
@@ -227,8 +227,15 @@ def create(self, **propvalues): |
227 | 227 | def get(self, nodeid, propname, default=_marker, cache=1): |
228 | 228 | ''' trap the content propname and get it from the file |
229 | 229 | ''' |
| 230 | + |
| 231 | + poss_msg = 'Possibly a access right configuration problem.' |
230 | 232 | if propname == 'content': |
231 | | - return self.db.getfile(self.classname, nodeid, None) |
| 233 | + try: |
| 234 | + return self.db.getfile(self.classname, nodeid, None) |
| 235 | + except: |
| 236 | + # BUG: by catching this we donot see an error in the log. |
| 237 | + return 'ERROR reading file: %s%s\n%s'%( |
| 238 | + self.classname, nodeid, poss_msg) |
232 | 239 | if default is not _marker: |
233 | 240 | return Class.get(self, nodeid, propname, default, cache=cache) |
234 | 241 | else: |
@@ -587,6 +594,10 @@ def generateChangeNote(self, nodeid, oldvalues): |
587 | 594 |
|
588 | 595 | # |
589 | 596 | # $Log: not supported by cvs2svn $ |
| 597 | +# Revision 1.44 2002/02/15 07:08:44 richard |
| 598 | +# . Alternate email addresses are now available for users. See the MIGRATION |
| 599 | +# file for info on how to activate the feature. |
| 600 | +# |
590 | 601 | # Revision 1.43 2002/02/14 22:33:15 richard |
591 | 602 | # . Added a uniquely Roundup header to email, "X-Roundup-Name" |
592 | 603 | # |
|
0 commit comments