equal
deleted
inserted
replaced
27 |
27 |
28 from google.appengine.api import users |
28 from google.appengine.api import users |
29 from google.appengine.api import memcache |
29 from google.appengine.api import memcache |
30 from google.appengine.ext import db |
30 from google.appengine.ext import db |
31 |
31 |
|
32 from soc.logic.models import rankerroot |
|
33 from soc.models import student_proposal |
32 from soc.models.document import Document |
34 from soc.models.document import Document |
33 from soc.models.host import Host |
35 from soc.models.host import Host |
34 from soc.models.mentor import Mentor |
36 from soc.models.mentor import Mentor |
35 from soc.models.notification import Notification |
37 from soc.models.notification import Notification |
36 from soc.models.org_admin import OrgAdmin |
38 from soc.models.org_admin import OrgAdmin |
241 'ideas': 'http://code.google.com/p/soc/issues', |
243 'ideas': 'http://code.google.com/p/soc/issues', |
242 }) |
244 }) |
243 |
245 |
244 melange = Organization(**group_properties) |
246 melange = Organization(**group_properties) |
245 melange.put() |
247 melange.put() |
246 |
248 # create a new ranker |
|
249 rankerroot.logic.create(student_proposal.DEF_RANKER_NAME, melange, |
|
250 student_proposal.DEF_SCORE, 100) |
247 |
251 |
248 group_properties.update({ |
252 group_properties.update({ |
249 'scope_path': 'google/gsoc2009', |
253 'scope_path': 'google/gsoc2009', |
250 'scope': gsoc2009, |
254 'scope': gsoc2009, |
251 }) |
255 }) |
259 'description': 'Organization %d!' % i, |
263 'description': 'Organization %d!' % i, |
260 }) |
264 }) |
261 |
265 |
262 entity = Organization(**group_properties) |
266 entity = Organization(**group_properties) |
263 entity.put() |
267 entity.put() |
|
268 # create a new ranker |
|
269 rankerroot.logic.create(student_proposal.DEF_RANKER_NAME, entity, |
|
270 student_proposal.DEF_SCORE, 100) |
264 |
271 |
265 |
272 |
266 role_properties.update({ |
273 role_properties.update({ |
267 'key_name': 'google/ghop2009/melange/test', |
274 'key_name': 'google/ghop2009/melange/test', |
268 'link_id': 'test', |
275 'link_id': 'test', |