Seed in some orgs
This is to facilitate testing of a 'slot allocation' ui.
Patch by: SVerre Rabbelier
--- a/app/soc/models/seed_db.py Mon Feb 16 19:29:51 2009 +0000
+++ b/app/soc/models/seed_db.py Mon Feb 16 19:30:11 2009 +0000
@@ -167,9 +167,9 @@
}
for i in range(15):
- org_app_properties['key_name'] = 'google/gsoc2009/org_%d' % i
- org_app_properties['link_id'] = 'org_%d' % i
- org_app_properties['name'] = 'Organization %d' % i
+ org_app_properties['key_name'] = 'google/gsoc2009/wannabee_%d' % i
+ org_app_properties['link_id'] = 'wannabe_%d' % i
+ org_app_properties['name'] = 'Wannabe %d' % i
entity = OrgApplication(**org_app_properties)
entity.put()
@@ -191,6 +191,19 @@
melange.put()
+ for i in range(15):
+ group_properties.update({
+ 'key_name': 'google/gsoc2009/org_%d' % i,
+ 'link_id': 'org_%d' % i,
+ 'name': 'Organization %d' % i,
+ 'short_name': 'Org %d' % i,
+ 'description': 'Organization %d!' % i,
+ })
+
+ entity = Organization(**group_properties)
+ entity.put()
+
+
role_properties.update({
'key_name': 'google/gsoc2009/melange/test',
'link_id': 'test',