Fix a bug in seed_db
Using %(num)d with an int as argument doesn't work.
Patch by: Sverre Rabbelier
--- a/app/soc/models/seed_db.py Sun Apr 12 16:43:30 2009 +0000
+++ b/app/soc/models/seed_db.py Mon Apr 13 14:34:42 2009 +0000
@@ -384,10 +384,10 @@
"""Returns the properties for a new user entity.
"""
properties = {
- 'key_name': 'user_%(num)d' % i,
- 'link_id': 'user_%(num)d' % i,
- 'account': users.User(email='user_%(num)d@example.com' % i),
- 'name': 'User %(num)d' % i,
+ 'key_name': 'user_%d' % i,
+ 'link_id': 'user_%d' % i,
+ 'account': users.User(email='user_%d@example.com' % i),
+ 'name': 'User %d' % i,
}
return properties