145 |
145 |
146 gsoc2009 = Program(**program_properties) |
146 gsoc2009 = Program(**program_properties) |
147 gsoc2009.put() |
147 gsoc2009.put() |
148 |
148 |
149 |
149 |
|
150 timeline_properties = { |
|
151 'key_name': 'google/ghop2009', |
|
152 'scope_path': 'google/ghop2009', |
|
153 } |
|
154 |
|
155 ghop2009_timeline = Timeline(**timeline_properties) |
|
156 ghop2009_timeline.put() |
|
157 |
|
158 |
|
159 program_properties.update({ |
|
160 'key_name': 'google/ghop2009', |
|
161 'link_id': 'ghop2009', |
|
162 'name': 'Google Highly Open Participation Contest 2009', |
|
163 'short_name': 'GHOP 2009', |
|
164 'group_label': 'GHOP', |
|
165 'description': 'This is the program for GHOP 2009.', |
|
166 'workflow': 'ghop', |
|
167 'timeline': ghop2009_timeline, |
|
168 }) |
|
169 |
|
170 ghop2009 = Program(**program_properties) |
|
171 ghop2009.put() |
|
172 |
|
173 |
150 org_app_properties = { |
174 org_app_properties = { |
151 'scope_path': 'google/gsoc2009', |
175 'scope_path': 'google/gsoc2009', |
152 'scope': gsoc2009, |
176 'scope': gsoc2009, |
153 'applicant': current_user, |
177 'applicant': current_user, |
154 'home_page': 'http://www.google.com', |
178 'home_page': 'http://www.google.com', |
173 entity = OrgApplication(**org_app_properties) |
197 entity = OrgApplication(**org_app_properties) |
174 entity.put() |
198 entity.put() |
175 |
199 |
176 |
200 |
177 group_properties.update({ |
201 group_properties.update({ |
178 'key_name': 'google/gsoc2009/melange', |
202 'key_name': 'google/ghop2009/melange', |
179 'link_id': 'melange', |
203 'link_id': 'melange', |
180 'name': 'Melange Development Team', |
204 'name': 'Melange Development Team', |
181 'short_name': 'Melange', |
205 'short_name': 'Melange', |
182 'scope_path': 'google/gsoc2009', |
206 'scope_path': 'google/ghop2009', |
183 'scope': gsoc2009, |
207 'scope': ghop2009, |
184 'home_page': 'http://code.google.com/p/soc', |
208 'home_page': 'http://code.google.com/p/soc', |
185 'description': 'Melange, share the love!', |
209 'description': 'Melange, share the love!', |
186 'license_name': 'Apache License', |
210 'license_name': 'Apache License', |
187 'ideas': 'http://code.google.com/p/soc/issues', |
211 'ideas': 'http://code.google.com/p/soc/issues', |
188 }) |
212 }) |
189 |
213 |
190 melange = Organization(**group_properties) |
214 melange = Organization(**group_properties) |
191 melange.put() |
215 melange.put() |
192 |
216 |
|
217 |
|
218 group_properties.update({ |
|
219 'scope_path': 'google/gsoc2009', |
|
220 'scope': gsoc2009, |
|
221 }) |
193 |
222 |
194 for i in range(15): |
223 for i in range(15): |
195 group_properties.update({ |
224 group_properties.update({ |
196 'key_name': 'google/gsoc2009/org_%d' % i, |
225 'key_name': 'google/gsoc2009/org_%d' % i, |
197 'link_id': 'org_%d' % i, |
226 'link_id': 'org_%d' % i, |