Seed in some orgs
authorSverre Rabbelier <srabbelier@gmail.com>
Mon, 16 Feb 2009 19:30:11 +0000
changeset 1362 31b2cb6b75d8
parent 1361 228061de9e8d
child 1363 5667c29be1a3
Seed in some orgs This is to facilitate testing of a 'slot allocation' ui. Patch by: SVerre Rabbelier
app/soc/models/seed_db.py
--- 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',