summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cd906f7)
raw | patch | inline | side by side (parent: cd906f7)
author | grubert <grubert@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 20 Feb 2002 15:48:45 +0000 (15:48 +0000) | ||
committer | grubert <grubert@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 20 Feb 2002 15:48:45 +0000 (15:48 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@643 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/roundupdb.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index d129e52a8738dfedda43fa5423f4994128d82ad6..0a6430552890fc4a07f6ec3e761e8eef372db8b5 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
2002-02-?? - 0.4.1
Feature:
+ . roundup db catches retrieving not existing files.
. #503204 ] mailgw needs a default class
- partially done - the setting of additional properties can wait for a
better configuration system.
diff --git a/roundup/roundupdb.py b/roundup/roundupdb.py
index c77a3411bf27b7f093dd9f3742b8da2d98353ce2..9a95f4ef82a0e3027798b27a17a651b80fbaa3bb 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.44 2002-02-15 07:08:44 richard Exp $
+# $Id: roundupdb.py,v 1.45 2002-02-20 15:48:45 grubert Exp $
__doc__ = """
Extending hyperdb with types specific to issue-tracking.
def get(self, nodeid, propname, default=_marker, cache=1):
''' trap the content propname and get it from the file
'''
+
+ poss_msg = 'Possibly a access right configuration problem.'
if propname == 'content':
- return self.db.getfile(self.classname, nodeid, None)
+ try:
+ return self.db.getfile(self.classname, nodeid, None)
+ except:
+ # BUG: by catching this we donot see an error in the log.
+ return 'ERROR reading file: %s%s\n%s'%(
+ self.classname, nodeid, poss_msg)
if default is not _marker:
return Class.get(self, nodeid, propname, default, cache=cache)
else:
#
# $Log: not supported by cvs2svn $
+# Revision 1.44 2002/02/15 07:08:44 richard
+# . Alternate email addresses are now available for users. See the MIGRATION
+# file for info on how to activate the feature.
+#
# Revision 1.43 2002/02/14 22:33:15 richard
# . Added a uniquely Roundup header to email, "X-Roundup-Name"
#