app/soc/models/seed_db.py
changeset 2813 6f7af233b5b0
parent 2669 c28e2dc4cd51
child 2972 1e1b8f22e153
equal deleted inserted replaced
2812:9280179e34fd 2813:6f7af233b5b0
   333       'short_name': 'GSoC 2009',
   333       'short_name': 'GSoC 2009',
   334       'group_label': 'GSOC',
   334       'group_label': 'GSOC',
   335       'description': 'This is the program for GSoC 2009.',
   335       'description': 'This is the program for GSoC 2009.',
   336       'apps_tasks_limit': 42,
   336       'apps_tasks_limit': 42,
   337       'slots': 42,
   337       'slots': 42,
   338       'workflow': 'gsoc',
       
   339       'timeline': gsoc2009_timeline,
   338       'timeline': gsoc2009_timeline,
   340       'status': 'visible',
   339       'status': 'visible',
   341       }
   340       }
   342 
   341 
   343   gsoc2009 = Program(**program_properties)
   342   gsoc2009 = Program(**program_properties)
   344   gsoc2009.put()
   343   gsoc2009.put()
   345 
   344 
   346 
   345   # TODO: Use real GHOPProgram here
   347   timeline_properties = {
   346   timeline_properties = {
   348         'key_name': 'google/ghop2009',
   347         'key_name': 'google/ghop2009',
   349         'link_id': 'ghop2009',
   348         'link_id': 'ghop2009',
   350         'scope_path': 'google',
   349         'scope_path': 'google',
   351         'scope': google,
   350         'scope': google,
   360       'link_id': 'ghop2009',
   359       'link_id': 'ghop2009',
   361       'name': 'Google Highly Open Participation Contest 2009',
   360       'name': 'Google Highly Open Participation Contest 2009',
   362       'short_name': 'GHOP 2009',
   361       'short_name': 'GHOP 2009',
   363       'group_label': 'GHOP',
   362       'group_label': 'GHOP',
   364       'description': 'This is the program for GHOP 2009.',
   363       'description': 'This is the program for GHOP 2009.',
   365       'workflow': 'ghop',
       
   366       'timeline': ghop2009_timeline,
   364       'timeline': ghop2009_timeline,
   367       })
   365       })
   368 
   366 
   369   ghop2009 = Program(**program_properties)
   367   ghop2009 = Program(**program_properties)
   370   ghop2009.put()
   368   ghop2009.put()