Seed some users as well
Users 100-200 are normalized on purpose.
Patch by: Sverre Rabbelier
--- a/app/soc/models/seed_db.py Tue Mar 03 19:50:11 2009 +0000
+++ b/app/soc/models/seed_db.py Tue Mar 03 19:50:42 2009 +0000
@@ -63,16 +63,38 @@
account = users.User(email='test@example.com')
user_properties = {
- 'key_name': 'test',
- 'link_id': 'test',
- 'account': account,
- 'name': 'Test',
- }
+ 'key_name': 'test',
+ 'link_id': 'test',
+ 'account': account,
+ 'name': 'Test',
+ }
current_user = User(**user_properties)
current_user.put()
+ for i in range(100):
+ user_properties = {
+ 'key_name': 'user_%d' % i,
+ 'link_id': 'user_%d' % i,
+ 'account': users.User(email='user_%d@example.com' % i),
+ 'name': 'User %d' % i,
+ }
+ entity = User(**user_properties)
+ entity.put()
+
+
+ for i in range(100, 200):
+ user_properties = {
+ 'key_name': 'user_%d' % i,
+ 'link_id': 'user_%d' % i,
+ 'account': users.User(email='user_%d' % i),
+ 'name': 'User %d' % i,
+ }
+ entity = User(**user_properties)
+ entity.put()
+
+
group_properties = {
'key_name': 'google',
'link_id': 'google',