comparison roundup/hyperdb.py @ 1249:6c24a86a12ae

Fixes for SourceForge tracker bugs. - fixed filter() with no sort/group [SF#618614] - fixed register with no session [SF#618611] - fixed log / pid file path handling in roundup-server [SF#617981] - fixed old gadfly compatibiltiy problem, for sure this time [SF#612873]
author Richard Jones <richard@users.sourceforge.net>
date Mon, 07 Oct 2002 00:52:51 +0000
parents 8dd4f736370b
children b42fa71754c9
comparison
equal deleted inserted replaced
1248:5b419b02c169 1249:6c24a86a12ae
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.83 2002-10-03 06:56:29 richard Exp $ 18 # $Id: hyperdb.py,v 1.84 2002-10-07 00:52:51 richard Exp $
19 19
20 """ 20 """
21 Hyperdatabase implementation, especially field types. 21 Hyperdatabase implementation, especially field types.
22 """ 22 """
23 23
510 510
511 db.issue.find(messages={'1':1,'3':1}, files={'7':1}) 511 db.issue.find(messages={'1':1,'3':1}, files={'7':1})
512 """ 512 """
513 raise NotImplementedError 513 raise NotImplementedError
514 514
515 def filter(self, search_matches, filterspec, sort, group, 515 def filter(self, search_matches, filterspec, sort=(None,None),
516 num_re = re.compile('^\d+$')): 516 group=(None,None)):
517 ''' Return a list of the ids of the active nodes in this class that 517 ''' Return a list of the ids of the active nodes in this class that
518 match the 'filter' spec, sorted by the group spec and then the 518 match the 'filter' spec, sorted by the group spec and then the
519 sort spec 519 sort spec.
520
521 "filterspec" is {propname: value(s)}
522 "sort" and "group" are (dir, prop) where dir is '+', '-' or None
523 and prop is a prop name or None
524 "search_matches" is {nodeid: marker}
525
526 The filter must match all properties specificed - but if the
527 property value to match is a list, any one of the values in the
528 list may match for that property to match.
520 ''' 529 '''
521 raise NotImplementedError 530 raise NotImplementedError
522 531
523 def count(self): 532 def count(self):
524 """Get the number of nodes in this class. 533 """Get the number of nodes in this class.

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