comparison roundup/roundupdb.py @ 1174:8e318dfaf479

Verify contents of tracker module when the tracker is opened Performance improvements in *dbm and sq backends New benchmark module. To use: PYTHONPATH=. python2 test/benchmark.py (yes, it's a little basic at present ;)
author Richard Jones <richard@users.sourceforge.net>
date Fri, 20 Sep 2002 01:20:32 +0000
parents 70f187da3cf2
children deab62016de7
comparison
equal deleted inserted replaced
1173:58f1a2c174ed 1174:8e318dfaf479
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: roundupdb.py,v 1.68 2002-09-11 02:20:35 richard Exp $ 18 # $Id: roundupdb.py,v 1.69 2002-09-20 01:20:31 richard Exp $
19 19
20 __doc__ = """ 20 __doc__ = """
21 Extending hyperdb with types specific to issue-tracking. 21 Extending hyperdb with types specific to issue-tracking.
22 """ 22 """
23 23
356 changed = {} 356 changed = {}
357 props = cl.getprops(protected=0) 357 props = cl.getprops(protected=0)
358 358
359 # determine what changed 359 # determine what changed
360 for key in oldvalues.keys(): 360 for key in oldvalues.keys():
361 if key in ['files','messages']: continue 361 if key in ['files','messages']:
362 continue
363 if key in ('activity', 'creator', 'creation'):
364 continue
362 new_value = cl.get(nodeid, key) 365 new_value = cl.get(nodeid, key)
363 # the old value might be non existent 366 # the old value might be non existent
364 try: 367 try:
365 old_value = oldvalues[key] 368 old_value = oldvalues[key]
366 if type(new_value) is type([]): 369 if type(new_value) is type([]):

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