app/soc/models/seed_db.py
changeset 1362 31b2cb6b75d8
parent 1355 7a00bcfa0371
child 1363 5667c29be1a3
equal deleted inserted replaced
1361:228061de9e8d 1362:31b2cb6b75d8
   165     'continued_contribs': 'We promise them a cake.',
   165     'continued_contribs': 'We promise them a cake.',
   166     'agreed_to_admin_agreement': True,
   166     'agreed_to_admin_agreement': True,
   167     }
   167     }
   168 
   168 
   169   for i in range(15):
   169   for i in range(15):
   170     org_app_properties['key_name'] = 'google/gsoc2009/org_%d' % i
   170     org_app_properties['key_name'] = 'google/gsoc2009/wannabee_%d' % i
   171     org_app_properties['link_id'] = 'org_%d' % i
   171     org_app_properties['link_id'] = 'wannabe_%d' % i
   172     org_app_properties['name'] = 'Organization %d' % i
   172     org_app_properties['name'] = 'Wannabe %d' % i
   173     entity = OrgApplication(**org_app_properties)
   173     entity = OrgApplication(**org_app_properties)
   174     entity.put()
   174     entity.put()
   175 
   175 
   176 
   176 
   177   group_properties.update({
   177   group_properties.update({
   187     'ideas': 'http://code.google.com/p/soc/issues',
   187     'ideas': 'http://code.google.com/p/soc/issues',
   188     })
   188     })
   189 
   189 
   190   melange = Organization(**group_properties)
   190   melange = Organization(**group_properties)
   191   melange.put()
   191   melange.put()
       
   192 
       
   193 
       
   194   for i in range(15):
       
   195     group_properties.update({
       
   196         'key_name': 'google/gsoc2009/org_%d' % i,
       
   197         'link_id': 'org_%d' % i,
       
   198         'name': 'Organization %d' % i,
       
   199         'short_name': 'Org %d' % i,
       
   200         'description': 'Organization %d!' % i,
       
   201         })
       
   202 
       
   203     entity = Organization(**group_properties)
       
   204     entity.put()
   192 
   205 
   193 
   206 
   194   role_properties.update({
   207   role_properties.update({
   195       'key_name': 'google/gsoc2009/melange/test',
   208       'key_name': 'google/gsoc2009/melange/test',
   196       'link_id': 'test',
   209       'link_id': 'test',