summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 17678a4)
raw | patch | inline | side by side (parent: 17678a4)
author | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 16 Nov 2003 18:41:40 +0000 (18:41 +0000) | ||
committer | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 16 Nov 2003 18:41:40 +0000 (18:41 +0000) |
it's already in hyperdb.Class.
- Implementations of hyperdb.Database do need to implement the getnode method
themselves.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1995 57a73879-2fb5-44c3-a270-3262357dd7e2
- Implementations of hyperdb.Database do need to implement the getnode method
themselves.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1995 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/backends/back_anydbm.py | patch | blob | history | |
roundup/backends/rdbms_common.py | patch | blob | history | |
roundup/hyperdb.py | patch | blob | history |
index d2897addf497c0f019d6cd5bbae4bf8edf6d6eff..d6aebc43da3d022ad9d1a4cc8123de59a2cccdb8 100644 (file)
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-#$Id: back_anydbm.py,v 1.131 2003-11-14 00:11:18 richard Exp $
+#$Id: back_anydbm.py,v 1.132 2003-11-16 18:41:40 jlgijsbers 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
return d[propname]
- # not in spec
- def getnode(self, nodeid, cache=1):
- ''' Return a convenience wrapper for the node.
-
- 'nodeid' must be the id of an existing node of this class or an
- IndexError is raised.
-
- 'cache' exists for backwards compatibility, and is not used.
- '''
- return Node(self, nodeid)
-
def set(self, nodeid, **propvalues):
'''Modify a property on an existing node of this class.
index 627ecec929f590d4121b52b072cffd98803e9634..bdb60ac3493c1c9b369649b5e97d8bc36b3e73dd 100644 (file)
-# $Id: rdbms_common.py,v 1.70 2003-11-14 00:11:19 richard Exp $
+# $Id: rdbms_common.py,v 1.71 2003-11-16 18:41:40 jlgijsbers Exp $
''' Relational database (SQL) backend common code.
Basics:
return d[propname]
- def getnode(self, nodeid, cache=1):
- ''' Return a convenience wrapper for the node.
-
- 'nodeid' must be the id of an existing node of this class or an
- IndexError is raised.
-
- 'cache' exists for backwards compatibility, and is not used.
- '''
- return Node(self, nodeid)
-
def set(self, nodeid, **propvalues):
'''Modify a property on an existing node of this class.
diff --git a/roundup/hyperdb.py b/roundup/hyperdb.py
index 245b917d4105ee06f69a5b484540b268e3511445..2933a9989be4464a26014ff5c5e31494dad834fc 100644 (file)
--- a/roundup/hyperdb.py
+++ b/roundup/hyperdb.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: hyperdb.py,v 1.91 2003-11-11 00:35:13 richard Exp $
+# $Id: hyperdb.py,v 1.92 2003-11-16 18:41:40 jlgijsbers Exp $
"""
Hyperdatabase implementation, especially field types.
Implementation
--------------
-All methods except __repr__ and getnode must be implemented by a
-concrete backend Class.
+All methods except __repr__ must be implemented by a concrete backend Database.
'''
"""
raise NotImplementedError
+ # not in spec
def getnode(self, nodeid, cache=1):
''' Return a convenience wrapper for the node.