summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2bea38f)
raw | patch | inline | side by side (parent: 2bea38f)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 12 Sep 2002 05:51:42 +0000 (05:51 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 12 Sep 2002 05:51:42 +0000 (05:51 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1149 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/backends/back_anydbm.py | patch | blob | history | |
roundup/backends/back_gadfly.py | patch | blob | history |
index 12ba0e49153b6668eb7b20fd4b36587c190929f8..d1e0aa34640889354c69ea1f9b9d1d1f85144344 100644 (file)
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-#$Id: back_anydbm.py,v 1.75 2002-09-10 12:44:42 richard Exp $
+#$Id: back_anydbm.py,v 1.76 2002-09-12 05:51:42 richard Exp $
'''
This module defines a backend that saves the hyperdatabase in a database
chosen by anydbm. It is guaranteed to always be available in python
otherwise a KeyError is raised.
'''
if not self.key:
- raise TypeError, 'No key property set'
+ raise TypeError, 'No key property set for class %s'%self.classname
cldb = self.db.getclassdb(self.classname)
try:
for nodeid in self.db.getnodeids(self.classname, cldb):
index 7bde8f77cd2ad3e554fd47b72ab964f9dacfbce8..e0f2bc319897c8505b227abe617f54ef3cbc170a 100644 (file)
-# $Id: back_gadfly.py,v 1.16 2002-09-11 01:20:09 richard Exp $
+# $Id: back_gadfly.py,v 1.17 2002-09-12 05:51:42 richard Exp $
__doc__ = '''
About Gadfly
============
otherwise a KeyError is raised.
'''
if not self.key:
- raise TypeError, 'No key property set'
+ raise TypeError, 'No key property set for class %s'%self.classname
cursor = self.db.conn.cursor()
sql = 'select id from _%s where _%s=?'%(self.classname, self.key)