comparison roundup/hyperdb.py @ 841:234996e85699

braino
author Richard Jones <richard@users.sourceforge.net>
date Wed, 10 Jul 2002 00:24:10 +0000
parents bf55b2b800b9
children 2dd862af72ee
comparison
equal deleted inserted replaced
840:e07e5903c3b4 841:234996e85699
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.73 2002-07-10 00:19:48 richard Exp $ 18 # $Id: hyperdb.py,v 1.74 2002-07-10 00:24:10 richard Exp $
19 19
20 __doc__ = """ 20 __doc__ = """
21 Hyperdatabase implementation, especially field types. 21 Hyperdatabase implementation, especially field types.
22 """ 22 """
23 23
838 l.append(id) 838 l.append(id)
839 hit = 1 839 hit = 1
840 break 840 break
841 if hit: 841 if hit:
842 break 842 break
843 except: 843 finally:
844 cldb.close() 844 cldb.close()
845 return l 845 return l
846 846
847 def stringFind(self, **requirements): 847 def stringFind(self, **requirements):
848 """Locate a particular node by matching a set of its String 848 """Locate a particular node by matching a set of its String
1213 cl.create(name=options[i], order=i) 1213 cl.create(name=options[i], order=i)
1214 return hyperdb.Link(name) 1214 return hyperdb.Link(name)
1215 1215
1216 # 1216 #
1217 # $Log: not supported by cvs2svn $ 1217 # $Log: not supported by cvs2svn $
1218 # Revision 1.73 2002/07/10 00:19:48 richard
1219 # Added explicit closing of backend database handles.
1220 #
1218 # Revision 1.72 2002/07/09 21:53:38 gmcm 1221 # Revision 1.72 2002/07/09 21:53:38 gmcm
1219 # Optimize Class.find so that the propspec can contain a set of ids to match. 1222 # Optimize Class.find so that the propspec can contain a set of ids to match.
1220 # This is used by indexer.search so it can do just one find for all the index matches. 1223 # This is used by indexer.search so it can do just one find for all the index matches.
1221 # This was already confusing code, but for common terms (lots of index matches), 1224 # This was already confusing code, but for common terms (lots of index matches),
1222 # it is enormously faster. 1225 # it is enormously faster.

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