app/soc/models/seed_db.py
changeset 1363 5667c29be1a3
parent 1362 31b2cb6b75d8
child 1368 bd710a3ee7e7
--- a/app/soc/models/seed_db.py	Mon Feb 16 19:30:11 2009 +0000
+++ b/app/soc/models/seed_db.py	Mon Feb 16 19:30:33 2009 +0000
@@ -147,6 +147,30 @@
   gsoc2009.put()
 
 
+  timeline_properties = {
+        'key_name': 'google/ghop2009',
+        'scope_path': 'google/ghop2009',
+        }
+
+  ghop2009_timeline = Timeline(**timeline_properties)
+  ghop2009_timeline.put()
+
+
+  program_properties.update({
+      'key_name': 'google/ghop2009',
+      'link_id': 'ghop2009',
+      'name': 'Google Highly Open Participation Contest 2009',
+      'short_name': 'GHOP 2009',
+      'group_label': 'GHOP',
+      'description': 'This is the program for GHOP 2009.',
+      'workflow': 'ghop',
+      'timeline': ghop2009_timeline,
+      })
+
+  ghop2009 = Program(**program_properties)
+  ghop2009.put()
+
+
   org_app_properties = {
     'scope_path': 'google/gsoc2009',
     'scope': gsoc2009,
@@ -175,12 +199,12 @@
 
 
   group_properties.update({
-    'key_name': 'google/gsoc2009/melange',
+    'key_name': 'google/ghop2009/melange',
     'link_id': 'melange',
     'name': 'Melange Development Team',
     'short_name': 'Melange',
-    'scope_path': 'google/gsoc2009',
-    'scope': gsoc2009,
+    'scope_path': 'google/ghop2009',
+    'scope': ghop2009,
     'home_page': 'http://code.google.com/p/soc',
     'description': 'Melange, share the love!',
     'license_name': 'Apache License',
@@ -191,6 +215,11 @@
   melange.put()
 
 
+  group_properties.update({
+    'scope_path': 'google/gsoc2009',
+    'scope': gsoc2009,
+    })
+
   for i in range(15):
     group_properties.update({
         'key_name': 'google/gsoc2009/org_%d' % i,