Mercurial > p > roundup > code
comparison roundup/hyperdb.py @ 1926:3bdd34547fa7
Remove implementations of Class.getnode from back_anydbm and rdbms_common...
...it's already in hyperdb.Class.
Implementations of hyperdb.Database do need to implement the getnode
method themselves.
| author | Johannes Gijsbers <jlgijsbers@users.sourceforge.net> |
|---|---|
| date | Sun, 16 Nov 2003 18:41:40 +0000 |
| parents | dc43e339e607 |
| children | f5e8aeb1382d |
comparison
equal
deleted
inserted
replaced
| 1920:f9316d2cd5ba | 1926:3bdd34547fa7 |
|---|---|
| 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 17 # | 17 # |
| 18 # $Id: hyperdb.py,v 1.91 2003-11-11 00:35:13 richard Exp $ | 18 # $Id: hyperdb.py,v 1.92 2003-11-16 18:41:40 jlgijsbers Exp $ |
| 19 | 19 |
| 20 """ | 20 """ |
| 21 Hyperdatabase implementation, especially field types. | 21 Hyperdatabase implementation, especially field types. |
| 22 """ | 22 """ |
| 23 | 23 |
| 161 | 161 |
| 162 | 162 |
| 163 Implementation | 163 Implementation |
| 164 -------------- | 164 -------------- |
| 165 | 165 |
| 166 All methods except __repr__ and getnode must be implemented by a | 166 All methods except __repr__ must be implemented by a concrete backend Database. |
| 167 concrete backend Class. | |
| 168 | 167 |
| 169 ''' | 168 ''' |
| 170 | 169 |
| 171 # flag to set on retired entries | 170 # flag to set on retired entries |
| 172 RETIRED_FLAG = '__hyperdb_retired' | 171 RETIRED_FLAG = '__hyperdb_retired' |
| 372 | 371 |
| 373 'cache' exists for backwards compatibility, and is not used. | 372 'cache' exists for backwards compatibility, and is not used. |
| 374 """ | 373 """ |
| 375 raise NotImplementedError | 374 raise NotImplementedError |
| 376 | 375 |
| 376 # not in spec | |
| 377 def getnode(self, nodeid, cache=1): | 377 def getnode(self, nodeid, cache=1): |
| 378 ''' Return a convenience wrapper for the node. | 378 ''' Return a convenience wrapper for the node. |
| 379 | 379 |
| 380 'nodeid' must be the id of an existing node of this class or an | 380 'nodeid' must be the id of an existing node of this class or an |
| 381 IndexError is raised. | 381 IndexError is raised. |
