comparison tools/load_tracker.py @ 2234:70d21059aa18

fix nested scope bug in multilink sorting in rdbms filtering
author Richard Jones <richard@users.sourceforge.net>
date Thu, 22 Apr 2004 22:17:34 +0000
parents ca2664e095be
children 87c238d8bc76
comparison
equal deleted inserted replaced
2233:3d9bb1a052d1 2234:70d21059aa18
1 #! /usr/bin/env python 1 #! /usr/bin/env python
2 # $Id: load_tracker.py,v 1.2 2004-04-20 21:57:29 richard Exp $ 2 # $Id: load_tracker.py,v 1.3 2004-04-22 22:17:34 richard Exp $
3 3
4 ''' 4 '''
5 Usage: %s <tracker home> <N> 5 Usage: %s <tracker home> <N>
6 6
7 Load up the indicated tracker with N issues and N/100 users. 7 Load up the indicated tracker with N issues and N/100 users.
69 db.issue.create( 69 db.issue.create(
70 title=random.choice(titles), 70 title=random.choice(titles),
71 priority=random.choice(priorities), 71 priority=random.choice(priorities),
72 status=random.choice(statuses), 72 status=random.choice(statuses),
73 assignedto=random.choice(users)) 73 assignedto=random.choice(users))
74 if i%100: 74 if i%10:
75 db.commit() 75 db.commit()
76 print 76 print
77 77
78 db.commit() 78 db.commit()
79 finally: 79 finally:

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