comparison roundup/hyperdb.py @ 1015:b3db3c26d7ad maint-0.4

bug in multilink meant changes might not be detected correctly
author Richard Jones <richard@users.sourceforge.net>
date Tue, 03 Sep 2002 02:55:26 +0000
parents 982a5abb01ea
children a9a73d4e78b9
comparison
equal deleted inserted replaced
1012:d5ec803a836c 1015:b3db3c26d7ad
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.69.2.1 2002-07-10 06:30:47 richard Exp $ 18 # $Id: hyperdb.py,v 1.69.2.2 2002-09-03 02:55:26 richard Exp $
19 19
20 __doc__ = """ 20 __doc__ = """
21 Hyperdatabase implementation, especially field types. 21 Hyperdatabase implementation, especially field types.
22 """ 22 """
23 23
510 else: 510 else:
511 # TODO: None isn't right here, I think... 511 # TODO: None isn't right here, I think...
512 return None 512 return None
513 else: 513 else:
514 return default 514 return default
515
516 # dupe the return list so it can be modified safely
517 if isinstance(prop, Multilink):
518 return d[propname]
515 519
516 return d[propname] 520 return d[propname]
517 521
518 # XXX not in spec 522 # XXX not in spec
519 def getnode(self, nodeid, cache=1): 523 def getnode(self, nodeid, cache=1):
1182 cl.create(name=options[i], order=i) 1186 cl.create(name=options[i], order=i)
1183 return hyperdb.Link(name) 1187 return hyperdb.Link(name)
1184 1188
1185 # 1189 #
1186 # $Log: not supported by cvs2svn $ 1190 # $Log: not supported by cvs2svn $
1191 # Revision 1.69.2.1 2002/07/10 06:30:47 richard
1192 # . #571170 ] gdbm deadlock
1193 #
1187 # Revision 1.69 2002/06/17 23:15:29 richard 1194 # Revision 1.69 2002/06/17 23:15:29 richard
1188 # Can debug to stdout now 1195 # Can debug to stdout now
1189 # 1196 #
1190 # Revision 1.68 2002/06/11 06:52:03 richard 1197 # Revision 1.68 2002/06/11 06:52:03 richard
1191 # . #564271 ] find() and new properties 1198 # . #564271 ] find() and new properties

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