@@ -50,7 +50,7 @@ def Database(config, journaltag=None):
5050 pass
5151 return db
5252
53- class _Database (hyperdb .Database ):
53+ class _Database (hyperdb .Database , roundupdb . Database ):
5454 def __init__ (self , config , journaltag = None ):
5555 self .config = config
5656 self .journaltag = journaltag
@@ -1206,13 +1206,16 @@ def __init__(self, db, classname, **properties):
12061206
12071207 def get (self , nodeid , propname , default = _marker , cache = 1 ):
12081208 x = Class .get (self , nodeid , propname , default , cache )
1209+ poss_msg = 'Possibly an access right configuration problem.'
12091210 if propname == 'content' :
12101211 if x .startswith ('file:' ):
12111212 fnm = x [5 :]
12121213 try :
12131214 x = open (fnm , 'rb' ).read ()
1214- except Exception , e :
1215- x = repr (e )
1215+ except IOError , (strerror ):
1216+ # XXX by catching this we donot see an error in the log.
1217+ return 'ERROR reading file: %s%s\n %s\n %s' % (
1218+ self .classname , nodeid , poss_msg , strerror )
12161219 return x
12171220
12181221 def create (self , ** propvalues ):
0 commit comments