summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6be883f)
raw | patch | inline | side by side (parent: 6be883f)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 5 Dec 2003 04:43:46 +0000 (04:43 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 5 Dec 2003 04:43:46 +0000 (04:43 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2017 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/backends/back_metakit.py | patch | blob | history |
index 53035262a8680d71847f6d43090373e667b30d6e..38b63bb0d03b80cc792736b2fd192d4932ec1c29 100755 (executable)
-# $Id: back_metakit.py,v 1.53 2003-11-14 00:11:18 richard Exp $
+# $Id: back_metakit.py,v 1.54 2003-12-05 04:43:46 richard Exp $
'''
Metakit backend for Roundup, originally by Gordon McMillan.
_ALLOWSETTINGPRIVATEPROPS = 0
-class Class:
+class Class(hyperdb.Class):
privateprops = None
def __init__(self, db, classname, **properties):
#self.db = weakref.proxy(db)
if x.startswith('file:'):
fnm = x[5:]
try:
- x = open(fnm, 'rb').read()
+ f = open(fnm, 'rb')
except IOError, (strerror):
# XXX by catching this we donot see an error in the log.
return 'ERROR reading file: %s%s\n%s\n%s'%(
self.classname, nodeid, poss_msg, strerror)
+ x = f.read()
+ f.close()
return x
def create(self, **propvalues):