comparison roundup/hyperdb.py @ 1864:969a14faf707

Fixed "documentation" of getnodeids in roundup.hyperdb
author Richard Jones <richard@users.sourceforge.net>
date Fri, 24 Oct 2003 22:52:48 +0000
parents 91a4619b1a14
children dc43e339e607
comparison
equal deleted inserted replaced
1863:d2ad3309c415 1864:969a14faf707
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.89 2003-10-07 11:58:57 anthonybaxter Exp $ 18 # $Id: hyperdb.py,v 1.90 2003-10-24 22:52:48 richard Exp $
19 19
20 """ 20 """
21 Hyperdatabase implementation, especially field types. 21 Hyperdatabase implementation, especially field types.
22 """ 22 """
23 23
266 def countnodes(self, classname, db=None): 266 def countnodes(self, classname, db=None):
267 '''Count the number of nodes that exist for a particular Class. 267 '''Count the number of nodes that exist for a particular Class.
268 ''' 268 '''
269 raise NotImplementedError 269 raise NotImplementedError
270 270
271 def getnodeids(self, classname, db=None):
272 '''Retrieve all the ids of the nodes for a particular Class.
273 '''
274 raise NotImplementedError
275
276 def storefile(self, classname, nodeid, property, content): 271 def storefile(self, classname, nodeid, property, content):
277 '''Store the content of the file in the database. 272 '''Store the content of the file in the database.
278 273
279 The property may be None, in which case the filename does not 274 The property may be None, in which case the filename does not
280 indicate which property is being saved. 275 indicate which property is being saved.
386 IndexError is raised. 381 IndexError is raised.
387 382
388 'cache' exists for backwards compatibility, and is not used. 383 'cache' exists for backwards compatibility, and is not used.
389 ''' 384 '''
390 return Node(self, nodeid) 385 return Node(self, nodeid)
386
387 def getnodeids(self, db=None):
388 '''Retrieve all the ids of the nodes for a particular Class.
389 '''
390 raise NotImplementedError
391 391
392 def set(self, nodeid, **propvalues): 392 def set(self, nodeid, **propvalues):
393 """Modify a property on an existing node of this class. 393 """Modify a property on an existing node of this class.
394 394
395 'nodeid' must be the id of an existing node of this class or an 395 'nodeid' must be the id of an existing node of this class or an

Roundup Issue Tracker: http://roundup-tracker.org/