comparison tools/load_tracker.py @ 2230:ca2664e095be

disable forking server when os.fork() not available [SF#938586]
author Richard Jones <richard@users.sourceforge.net>
date Tue, 20 Apr 2004 21:57:29 +0000
parents 1d1362c54c94
children 70d21059aa18
comparison
equal deleted inserted replaced
2229:77461135596d 2230:ca2664e095be
1 #! /usr/bin/env python 1 #! /usr/bin/env python
2 # $Id: load_tracker.py,v 1.1 2004-04-20 05:47:33 richard Exp $ 2 # $Id: load_tracker.py,v 1.2 2004-04-20 21:57:29 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:
75 db.commit()
74 print 76 print
75 77
76 db.commit() 78 db.commit()
77 finally: 79 finally:
78 db.close() 80 db.close()

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